[PyQt] About QSystemTrayIcon, I Need some tips

"Gustavo A. Dí­az" gustavo.diaz at gmail.com
Tue Jul 24 06:54:29 BST 2007


Yeah! i was thiking kind of it!
That worked good! thanks for guide this newbie developer :P
Now, for the systray i have only the close issue.

Thanksss!!

Cheers!

René 'Necoro' Neumann escribió:
> Gustavo A. Dí­az schrieb:
> > Here is what i did, and works (i didn't posted all in my last reply,
> sorry):
>
> > def OnActivated(self, reason):
> >         if reason != QtGui.QSystemTrayIcon.Context:
> >                     self.hide()
> >         if self.windowState() & Qt.WindowMinimized:
> >                     self.showNormal()
> >         else:
> >                     self.setWindowState(self.windowState() |
> > Qt.WindowMinimized)
>
>
> try this :)
>
> def OnActivated (self, reason):
>     if reason != QtGui.QSystemTrayIcon.Context:
>         if self.isHidden():
>             self.showNormal()
>         else:
>             self.hide()

-- 
/Gustavo A. Díaz/
*GDNet Projects*
www.gdnet.com.ar <http://www.gdnet.com.ar>
Gustavo A. Díaz



More information about the PyQt mailing list