From afd6c4b57648199e9b404b58dfdf6757b6ebebe0 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Thu, 30 Nov 2023 08:32:10 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=88=9D=E3=81=AE=E3=82=B3=E3=83=9F?= =?UTF-8?q?=E3=83=83=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 0 main.py | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+) delete mode 100644 README.md create mode 100644 main.py diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/main.py b/main.py new file mode 100644 index 0000000..cda78cb --- /dev/null +++ b/main.py @@ -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 () +