Problems using tkSimpleDialog

Fredrik Lundh fredrik at pythonware.com
Thu Dec 13 10:46:46 CET 2001


Simon Brunning wrote:
> Thanks Eric. That does help. Problem is, the Tkinter.Tk() thing brings
> up an empty parent window, which I don't want. Ah well, back to the
> drawing board!

quick fix: create the root window, and immediately remove it:

    root = Tkinter.Tk()
    root.withdraw()

    ... tkSimpleDialog stuff follows ...

</F>

<!-- (the eff-bot guide to) the python standard library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list