Am Tuesday 09 November 2010 15:08:29 schrieb Jebagnana Das:
> Thanks Zoltan.. It did help a lot.. But if i want to capture single click
> and double click events of the mouse separately i'm afraid this can't be
> used..
>
> def onTrayIconActivated(self, reason):
> if reason == QSystemTrayIcon.DoubleClick:
> print('tray icon double clicked')
>
> if reason == QSystemTrayIcon.Trigger:
> print("Tray icon single clicked")
>
> If i double click the tray icon it executes both if conditions. Any way of
> resolving this?. Thanks again..
elif instead of second if perhaps?
Pete
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt