SzybciorSmartTraktor/main.py
s464852 68ac30d3ab Add pygame
Add pygame, white window and exit window logic
2022-03-08 20:27:24 +01:00

26 lines
471 B
Python

import pygame
WIDTH, HEIGHT = 800, 800
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Sztuczna Inteligencja")
def draw_window():
WIN.fill((255,255,255))
pygame.display.update()
def main():
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
draw_window()
pygame.quit()
if __name__ == "__main__":
main()