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
How do I import the pygame library?
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 Wayground
15 questions
CHS AMDM Final

Flashcard
•
12th Grade
15 questions
ROCKS AND MINERALS

Flashcard
•
12th Grade
15 questions
Vocab: Cs and Ds do not get degrees

Flashcard
•
12th Grade
15 questions
Physics 1 H Final Exam

Flashcard
•
12th Grade
15 questions
Drawing Conclusions

Flashcard
•
KG - University
15 questions
PROBABILITY: Independent & Dependent Events

Flashcard
•
11th - 12th Grade
15 questions
El Nino & La Nina

Flashcard
•
11th - 12th Grade
15 questions
Vocab: Cs and Ds do not get degrees

Flashcard
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade