newbie needs help with GUI

Scott David Daniels Scott.Daniels at Acm.Org
Sat Oct 4 15:12:42 EDT 2003


ted wrote:
> Hi,
> 
> I just installed Python 2.3 from python.org and installed it on Win2000.
> 
> When I double-click my gui script, a dos window appears behind the Tkinter
> gui.
> 
> How do I stop the dos window from coming up when I launch the gui script?
> 
> BTW, here's the code to the gui.
> 
> from Tkinter import *
> w = Button(text="Hello", command='exit')
> w.pack()
> w.mainloop()
> 
> Thanks,
> Ted
> 
> 
I suspect python.exe is associated with your.py file.
Reassociate with pythonw.exe from the same directory.

-Scott David Daniels
Scott.Daniels at .Acm.Org






More information about the Python-list mailing list