[wxpython-users] App does not close down - py2exe

Werner F. Bruhin werner.bruhin at free.fr
Sat May 24 10:24:52 PDT 2008


If I py2exe the app it doesn't close down.

def main():
    appl = BoaApp()
    appl.MainLoop()
    print 'mainloop ended'

If I generate a console app with py2exe it gets all the way to the print 
statement shown above but the console does not close.

If I generate a windows app I see the process still sitting in the 
Windows Task manager and I have to kill it manually.

I checked with the InspectionMixin that all the Frames close.

Then I suspected that it might be the InspectionMixin so I commented it out.

Then I suspected sqlalchemy, which is only new package I use in this 
version of my application, so rechecked that I closed the connections 
and for good measure "del'ed" the session, and the engine.

Then I added a "del appl".

BTW, I don't use the wx.TaskBarIcon.

I am running out of ideas what else could cause this.

I welcome any hints or tips to find out what is still hanging around at 
this point preventing the correct shutting down.

Thanks in advance
Werner

PS
Version info:
# Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
# wxPython 2.8.7.1, Boa Constructor 0.6.1

wxPython is the Unicode build


More information about the wxpython-users mailing list