n0bel / PiClock

A Fancy Clock built around a monitor and a Raspberry Pi
MIT License
566 stars 182 forks source link

Touch Screen Quit #168

Closed AFstache closed 3 years ago

AFstache commented 5 years ago

I'm running the clock on a pi with a touchscreen and no other external buttons and I've added some code to the PyQtPiClock.py to exit the clock at line 966

 def mouseDoubleClickEvent(self, event):
     if type(event) == QtGui.QMouseEvent:
         myquit()

I'm just wondering if there was a cleaner way to exit because doing a "Double Click" doesn't always work. Sometimes I just cycle between the pages and I just have to keep tapping until it quits.