Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1251

Python • PyGame window not appearing

$
0
0
Hi,

when i'm running script:

Code:

import pygamepygame.init()screen = pygame.display.set_mode((300, 300))while True:    pygame.draw.rect(screen, (200, 0, 200), pygame.Rect(0, 0, 300, 300))    pygame.display.flip()
on rpi4b the pygame window not appearing. terminal is not showing any errors.

PyGame version 2.1.2

Statistics: Posted by mmiko — Fri Dec 27, 2024 10:36 pm



Viewing all articles
Browse latest Browse all 1251

Trending Articles