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

Andrea Gavana andrea.gavana at gmail.com
Sat May 24 10:41:01 PDT 2008


Hi Werner,

On Sat, May 24, 2008 at 6:24 PM, Werner F. Bruhin wrote:
> 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.

Is sqlalchemy the only "external" package you are using? What about
matplotlib? (I remember once I almost kicked Python away because of
this very same bug in matplotlib). Do you have any dialog left open
somehow? What happens if you call wx.GetTopLevelWindows() when you're
about to close your app?

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/


More information about the wxpython-users mailing list