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()