How do I import the pygame library?
Python Pygame

Flashcard
•
Computers
•
12th Grade
•
Hard
Dinara Abdrakhmanova
Used 1+ times
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
import pygame
2.
FLASHCARD QUESTION
Front
How do I initialize the pygame?
Back
pygame.init()
3.
FLASHCARD QUESTION
Front
How do I initialize the surface? Options: import pygame, pygame.init(), surface = pygame.display.set_mode((400,300)), pygame.display.flip()
Back
surface = pygame.display.set_mode((400,300))
4.
FLASHCARD QUESTION
Front
How do I update the screen?
Back
pygame.display.flip()
5.
FLASHCARD QUESTION
Front
What does display.flip() do?
Back
will update the contents of the entire display
6.
FLASHCARD QUESTION
Front
What does display.update() do?
Back
allows to update a portion of the screen, instead of the entire area of the screen
7.
FLASHCARD QUESTION
Front
How can I check for an event if a user has pushed any event in the queue?
Back
run = True
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
ENSO CHeck

Flashcard
•
11th Grade
15 questions
PROBABILITY: Independent & Dependent Events

Flashcard
•
11th - 12th Grade
12 questions
Pygame Basics

Flashcard
•
11th Grade
10 questions
Web 2.5 Flashcard

Flashcard
•
11th Grade
15 questions
Micropipetting

Flashcard
•
12th Grade
15 questions
PROBABILITY: Independent & Dependent Events

Flashcard
•
11th - 12th Grade
15 questions
ROCKS AND MINERALS

Flashcard
•
12th Grade
15 questions
Drawing Conclusions

Flashcard
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University