[Tkinter-discuss] tkFileDialog: shuts down root window

Fredrik Lundh fredrik at pythonware.com
Thu Dec 21 08:51:47 CET 2006

mopman wrote:

> I'm using python tkinter to create a GUI.  I wish to collect 4 files from a
> user so for this part I created a GUI that has a Label, Entry  and Button. 
> To get the file I use tkFileDialog askopenfilename.  My problem is that
> after a few file selections using the tkFileDialog, the root window is
> destroyed (the whole program just dissappears). 
> I have created a simpler example and was able to reproduce the same thing
> with this.  I've just started using tkinter so I have no idea what I may be
> doing wrong.  If anyone has any ideas please let me know.

I don't have Pmw on this machine, but if I comment out the "import Pmw" 
line, the program works perfectly fine for me (Python 2.4.3, XP, running 
from the command prompt).

- do you still get the same problem if you remove the Pmw import ?

- how do you run the program ?


More information about the Tkinter-discuss mailing list