rPiTFT
rPiTFT copied to clipboard
missing pygame syntax before key events?
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.