|
|
@@ -0,0 +1,25 @@ |
|
|
|
import pygame |
|
|
|
from pygame.locals import * |
|
|
|
import sys |
|
|
|
|
|
|
|
|
|
|
|
class Main: |
|
|
|
@classmethod |
|
|
|
def main (cls) -> None: |
|
|
|
pygame.init () |
|
|
|
|
|
|
|
screen = pygame.display.set_mode ((640, 480)) |
|
|
|
|
|
|
|
while (True): |
|
|
|
screen.fill ((255, 255, 255)) |
|
|
|
pygame.display.update () |
|
|
|
|
|
|
|
for event in pygame.event.get (): |
|
|
|
if event.type == QUIT: |
|
|
|
pygame.quit () |
|
|
|
sys.exit () |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
Main.main () |
|
|
|
|