> Indeed when I double click on the tray icon, I got:
> OnTaskBarActivate...
> OnIconify...
> OnIconify...
you should only get one "OnIconify..." when double clicking (and this is
what I get on ubuntu). As I said EVT_ICONIZE is also triggered on restore in
wxGTK.
In case your code doesn't work try this demo:def OnIconify(self, evt):
print 'OnIconify...'
if evt.Iconized():
That did the trick. Thanks.
···
On Nov 15, 2007 10:00 PM, roee shlomo <roee88@gmail.com> wrote:
self.Iconize(True)
self.Hide()
self.tbicon.SetIcon(self.icon)