Hello,
>>>> elif construct(Even...) had no effect.
You could try some uggly thing like the following one :
======================================
def onTrayIconActivated(self, reason):
clickDetected = 0
if reason == QSystemTrayIcon.DoubleClick:
clickDetected += 1
elif reason == QSystemTrayIcon.Trigger:
clickDetected += 1
if clickDetected == 2:
print('tray icon double clicked')
elif clickDetected == 1:
print("Tray icon single clicked")
======================================
Christophe
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt