# Imports
from sdl2.ext import *
from sdl2.events import *
from sdl2.timer import *
# Initialize
init()
# Open a window
size = (700, 500)
window = Window("My Game", size )
window.show()
context = RenderContext(window)
# Initialize variables
done = False
white = (255, 255, 255)
# Main program loop
while not done:
# Process events
for my_event in get_events():
if my_event.type == SDL_QUIT:
done = True
# Clear screen
context.clear(white)
# Flip screen
context.present()
# Limit frame rate
SDL_Delay(60)
quit()