Clear PiTFT PyGame GUI on close - Raspberry Pi Forums
hi
have pitft screen , have been making little gui pygame.
can set touch screen button exit button, close down gui terminal (on pitft screen). part works.
problem is, if close program using ssh terminal session, using ctrl+c, gui freezes , can't mini screen go it's own terminal. (hope makes sense).
recall seeing can add in python script handle - kind of tell pi if keys pressed?
or pointers appreciated.
have pitft screen , have been making little gui pygame.
can set touch screen button exit button, close down gui terminal (on pitft screen). part works.
problem is, if close program using ssh terminal session, using ctrl+c, gui freezes , can't mini screen go it's own terminal. (hope makes sense).
recall seeing can add in python script handle - kind of tell pi if keys pressed?
or pointers appreciated.
i think questions answered 1 of faqs on pygame website
https://www.pygame.org/wiki/frequentlya ... correctly?
looking quit event?
https://www.pygame.org/wiki/frequentlya ... correctly?
looking quit event?
code: select all
if event.type == pygame.quit:
raspberrypi
Comments
Post a Comment