Tom12
1
Wayne,
The only thing you should change is:
self.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.onTaskbarActivate)
into:
self.tbicon.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.onTaskbarActivate)
You were binding the double-click event onto the frame itself, while it should have been bounded to the taskbar icon.
Best regards,
Tom.
dads
2
Thanks Tom,
Makes perfect sense that you have to bind it to the icon, I’d of never of got it though
···
On Fri, May 8, 2009 at 9:16 AM, Tom Clerckx tclerckx@gmail.com wrote:
Wayne,
The only thing you should change is:
self.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.onTaskbarActivate)
into:
self.tbicon.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.onTaskbarActivate)
You were binding the double-click event onto the frame itself, while it should have been bounded to the taskbar icon.
Best regards,
Tom.
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users