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

Werner F. Bruhin werner.bruhin at free.fr
Sat May 24 23:13:30 PDT 2008


Hi Andrea,

Andrea Gavana wrote:
> ....
> 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).
Yes, I also use matplotlib but no changes in how I use.  However I moved 
from another ORM package to sqlalchemy, therefor I suspect it is 
something to do with it.

What problem did you have with matplotlib which had a similar effect?
>  Do you have any dialog left open
> somehow? What happens if you call wx.GetTopLevelWindows() when you're
> about to close your app?
>   
In my topframe I close any dialogs which might be open - at least that 
is what I think I do ;-) , so will double check.

In the OnClose handler I get:
windows in OnClose: wxWindowList: [<twcbF.twcbF; proxy of <Swig Object 
of type 'wxFrame *' at 0x41a3dd0> >]

twcbF is my top frame.

And in my app.OnExit I get:
windows in OnExit: wxWindowList: []

The above is on my dev machine running it in Boa.  Lets see if this is 
same on my py2exe version, yeap I see the same when running/closing the 
py2exe'd version.

Based on the debug print statement I get all the way out of the app and 
the mainloop exits.  Could there be some Python stuff preventing the 
closing of the process?

Werner


More information about the wxpython-users mailing list