[python-win32] Tkinter - can't close the console or interpreter
window
Jens B. Jorgensen
jens.jorgensen at tallan.com
Mon Nov 3 12:36:43 EST 2003
Rename your file with a .pyw extension. If you have the regular
ActiveState python installation then doing so will associate the file
with the pythonw.exe build. pythonw is build as a win32 gui app and the
OS will not open a console window for it. This is a windoze thing rather
than anything to do with Python.
Hameed Khan wrote:
> Hi,
> Sorry last time i post my question with the subject with no sense to
> my question. Because i was sleepy. Anyway, here is my another
> question. Today in morning i was learning to make a simple dialogue
> box with a quit button on it. Here is the code listing.
>
> #### Simple Dialogue Code
>
>
>from Tkinter import *
>
># set up the window itself
>top = Tk()
>F = Frame(top)
>F.pack()
>
># add the widgets
>lHello = Label(F, text="Hello")
>lHello.pack()
>bQuit = Button(F, text="Quit", command=F.quit)
>bQuit.pack()
>
># set the loop running
>top.mainloop()
>
>
>
> #### End
>
> The problem is that the typical interpreter window is appearing behind
> the dialogue box when i double click on my script file. anyidea how i
> can close that interpreter window so i will only get my dialogue box.
>
> Thanks,
> Regards,
> Hameed Khan.
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> <http://launch.yahoo.com/video/?1093432&fs=1&redirectURL=http://launch.yahoo.com/promos/britneyspears/>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
>
--
Jens B. Jorgensen
jens.jorgensen at tallan.com
"With a focused commitment to our clients and our people, we deliver value through customized technology solutions."
More information about the Python-win32
mailing list