[PyKDE] How to connect QSystemTrayIcon activated() signal?

Wiktor Grębla greblus at gmail.com
Sat Nov 4 18:15:57 GMT 2006


On Sat, 4 Nov 2006 17:02:31 +0000

> > self.connect(self.tray, QtCore.SIGNAL("activated(QtGui.QSystemTrayIcon.Trigger)"),
> > self.on_trayclicked)
> >
> > # this doesn't work
> > What should i do to make it work as expected?
> 
> Signal arguments must be C++ signatures not Python ones, so 
> use "activated(QSystemTrayIcon::ActivationReason").

It works :). Thanks Phil. 

Regards,
W.

-- 
Talkers are no good doers.
http://greblus.net/djangoblog/




More information about the PyQt mailing list