How to hide Tk root window when using only canned dialogs?

Eric Brunel eric.brunel at pragmadev.com
Wed Feb 20 10:52:14 EST 2002


<posted & mailed>

Paul Soper wrote:
> The example script below works fine but the Tk window is visible
> throughout.  Is there a way to make it invisible?

Yep: create it explicitely:

from Tkinter import Tk
root = Tk()

and then make it disappear:

root.withdraw()

It should do the trick.

HTH
 - eric -



More information about the Python-list mailing list