Merge pull request 'board init' (#1) from init_pygame_board into main
Reviewed-on: s473634/TurboTraktor#1
This commit is contained in:
commit
7c6bae790c
26
main.py
Normal file
26
main.py
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user