wxpython:how to minimize to taskbar
kyosohma at gmail.com
kyosohma at gmail.com
Tue Aug 28 10:27:14 EDT 2007
On Aug 28, 9:10 am, Jimmy <mcknight0... at gmail.com> wrote:
> I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
> problem: how can I make my program minimize to the taskbar
> represented as an ico, and when there is some message from network
> coming, it will pop out?
Look at the wxPython demo source code. I found the code I needed in
the main.py file under the DemoTaskBarIcon class, which is a subclass
of wx.TaskBarIcon. You can't view it by running the demo. You have to
open the main.py file itself. On my Windows box, it's found here:
C:\Program Files\wxPython2.8 Docs and Demos\demo
You'll have to call a handler when you receive a message from the
network that basically calls your program's "show" command.
Mike
More information about the Python-list
mailing list