[PyQt] Changing systray icon while handling signal

Jim Bublitz jbublitz at nwinternet.com
Thu Jan 17 22:23:06 GMT 2008

On Thursday 17 January 2008 08:27, Dog Walker wrote:
> Using pyKde3
> I have a KSytemTray application. I want to change the systray icon
> (and tooltip)  when I begin handling a menuitem and change again
> before returning. It appears that the icon/tooltip is only set after
> returning to pyKde. Can I do what I want? How?

Assuming you're using KSystemTray, KSystemTray.setPixmap (pix) sets the icon 
to "pix", whatever it's value is when called.

See PyKDE/examples/systray.py


More information about the PyQt mailing list