Hot answers tagged

1

Assuming you want the whole screen to flash it is easy in pygame: import pygame,time pygame.init() scr = pygame.display.set_mode((0, 0), pygame.FULLSCREEN) r=1 while r<20: scr.fill(pygame.Color('black')) pygame.display.update() time.sleep(0.1) scr.fill(pygame.Color('white')) pygame.display.update() time.sleep(0.1) r+=1 ...


1

The simplest GUI is guizero. To install: pip3 install guizero Simple example: from guizero import App app = App(title="Hello world") app.display() https://lawsie.github.io/guizero/start/ One method to autostart: sudo thonny /etc/xdg/lxsession/LXDE-pi/autostart Add: @python3 /home/pi/test.py


Only top voted, non community-wiki answers of a minimum length are eligible