Tkinter main window needs to disappear

Peter Otten __peter__ at web.de
Fri Mar 5 07:21:01 EST 2004


Herman Geldenhuys wrote:

> Blanki've got to use a library(tkSnack) in Tkinter, but i don't want to
> use the Tk GUI. i need to create a Tkinter.Tk() and call it's main loop
> for the package to work, but like I said, I don't want to use the GUI.
> when I do this, there pops up a gui (main) window, but how do I make it
> disappear?

>>> import Tkinter
>>> root = Tkinter.Tk()
>>> root.withdraw()
''

I'd rather have the window not appear in the first place, but I don't know
how to achieve that, either.

Peter



More information about the Python-list mailing list