[wxPython-users] Strange Iconize behaviour?

Robin Dunn robin at alldunn.com
Thu Feb 1 09:30:13 PST 2007


Hannes Tismer wrote:
> Hey people,
> 
> I have an application with one main-frame (self.frame) and a taskbaricon.
> Additionally there may be X child frames. When the main-frame is being 
> iconized (Minimized),
> the child frames should be iconized, too. I also have a 
> wx.EVT_TASKBAR_LEFT_DCLICK, self.OnTaskBarActivate
> Bind which should do the same.
> The following code works partly; if the main-frame gets iconized via the 
> minimize button, the child frames hide.
> If the main-frame gets iconized via a doubleclick on my icon, the child 
> frames will be minimized but still shown
> in the taskbar:

I can't tell from this code snippet what the problem might be, but I 
notice that you are both Iconizing and Hiding your main frame.  I assume 
that you are hiding it because you don't want it to show up in the task 
bar, and to just be accessible from the system tray.  If that is the 
case then you can just use Hide and Show and not worry about Iconize at 
all.  Maybe that will simplify things enough that you can figure out 
your other problem as well.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list