O-Zone wrote:
Hi all,
again with the same APP another problem on close. I've a button that will close the prog. Unser Linux it works perfeclty but under Windows don't. Here's the related code:def QUIT_Button(self,evt):
log.msg("-[LOG END]---------------------------------------------------");
self.config.SAVEConfig()
self.twisted.stop()
self.Destroy()
You probably want Close instead of Destroy here.
# =============================== EVENTS ===========================
def OnIdle(self, event):
# Twisted Stuff
if self.twisted.poll():
event.RequestMore()
event.Skip()
def OnCloseWindow(self, event):
log.msg("-[LOG END]---------------------------------------------------");
self.config.SAVEConfig()
reactor.stop()
self.Destroy()
self.Close()
This method is never bound to EVT_CLOSE so it will never be called. Also, there is no need to call Close in this one.
Someone can found the problem or have some advices ?
Make sure that there are no frames or dialogs that have not been closed or destroyed. Make sure that there are no other threads still running.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!