From 43c3eaeb815db0201ee8ef7f78a659d215550403 Mon Sep 17 00:00:00 2001 From: micwuj Date: Tue, 7 Mar 2023 12:28:13 +0100 Subject: [PATCH] board init --- main.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..7f4e56d --- /dev/null +++ b/main.py @@ -0,0 +1,26 @@ +import pygame + +#pygame initialization +pygame.init() + +#set screen +SCREEN = pygame.display.set_mode((1000, 1000)) +pygame.display.set_caption("Traktor_interaktor") + +#screen background +def set_screen(): + SCREEN.fill((0,100,0)) + pygame.display.update() + + + +if __name__ == "__main__": + running = True + + while running: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + running = False + set_screen() + + pygame.quit() \ No newline at end of file -- 2.20.1