Hi All,
Again returning to Mike's FileDialog example -
http://www.blog.pythonlibrary.org/2011/02/10/wxpython-showing-2-filetypes-in-wx-filedialog/
I'm using Win7 (32-bit) on a recent laptop:
Python Platform: win32
Python Version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500
32 bit (Intel)]
wxPython version: 2.9.2.4 msw (classic)
If I run the program from a command prompt and select no files and
simply close the program using the upper right X icon, the program
closes instantly and I get the command prompt back instantly.
If I run the program from a command prompt, hit the Open File Dialog
button, hit the Cancel button to close the file dialog, then close the
wx window via the upper-right X, it takes a long time for the command
prompt to return (5s or longer). Similarly if I select ~ 6 files then
close the wx window via the X - it takes about 5 s for the prompt to
return. Under some combinations of selecting files, canceling, etc.,
it has taken much longer for the prompt to return.
It feels like something isn't getting released inside wxPython
properly, but I have no idea what is causing the issue nor how to
debug it. I haven't tried any other wxPython versions.
(Other wxPython scripts I have here that use the Win32 package to call
the native file dialog don't seem to have this issue.)
Any pointers?
Thanks.
Cheers,
Scott.