11118
1
Maybe some of you bump this too.
I had an application which contained a frame and when i closed it the all application shop down as it should
something like this:
app = wx.App()
frame = MyFrame(None, -1)
then i add it taskbar like this :
frame.tskic = MyTaskBarIcon(frame)
, and now when I try to close it now the frame disappear but the task bar i con stay and the program continue to ran
i use this to close it:
def OnTaskBarClose(self, event):
self.frame.Close()
Hi,
Maybe some of you bump this too.
I had an application which contained a frame and when i closed it the all application shop down as it should
something like this:
app = wx.App()
frame = MyFrame(None, -1)
then i add it taskbar like this :
frame.tskic = MyTaskBarIcon(frame)
, and now when I try to close it now the frame disappear but the task bar i con stay and the program continue to ran
i use this to close it:
def OnTaskBarClose(self, event):
self.frame.Close()
Taskbar icons need to be destroyed explicitly. Thus, you need to call
frame.tskic.Destroy()
before you call your frame's Close() method.
···
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org