Я только начал изучать pygame. Я следую за этим учебником.
я запустил следующую программу, но она показывает черный цвет вместо синего: < /p>
import pygame
h = input("Enter the height of the window : ")
w = input("Enter the width of the window : ")
screen = pygame.display.set_mode((w,h))
running = True
while running:
event = pygame.event.poll()
if event.type == pygame.QUIT:
running=0
screen.fill((0,0,1))
pygame.display.flip()
Подробнее здесь: https://stackoverflow.com/questions/318 ... r-properly