rPiTFT icon indicating copy to clipboard operation
rPiTFT copied to clipboard

missing pygame syntax before key events?

Open woofwoof opened this issue 1 year ago • 0 comments

Not sure if this is because of the way I implemented it myself but in menu_settings.py I had to add the module name of "pygame" when checking for events. The relevant erroneous code is here:

if event.type == KEYDOWN: if event.key == K_ESCAPE: sys.exit()

Again, just add pygame before KEYDOWN and K_ESCAPE.

woofwoof avatar Sep 08 '24 23:09 woofwoof