tkMessageBox dialog help

Fredrik Lundh fredrik at pythonware.com
Sun May 1 11:43:27 EDT 2005


Harlin Seritt wrote:

> >From what I've seen I'm afraid this is the way it is. If you call an
> instance of tkMessageBox and you don't have a 'master' Tk instance
> running, it will create its own.
>
> Still, I'm sure with a bit of voodoo you can hide the self created tk
> window while showing the message box.

no voodoo needed: just create the root window yourself (root = Tk()), and
call the withdraw method on it before you do anything else.

</F>






More information about the Python-list mailing list