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.

i think questions answered 1 of faqs on pygame website

https://www.pygame.org/wiki/frequentlya ... correctly?

looking quit event?

code: select all

if event.type == pygame.quit:


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support