Tkinter: closing app with active messagebox

Fredrik Lundh fredrik at pythonware.com
Fri Nov 26 06:36:28 EST 1999


<marten at btk.utu.fi> wrote:
> My question is: How do I force an active messagebox to close? Can this
> be done with the standard dialog boxes in tkMessageBox or do I have to
> write my own dialog boxes?

destroying the root window (call the "destroy"
method on the Tk instance) should work.

(or you can use os.exit()...)

hope this helps! (if not, please post some code).

</F>

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





More information about the Python-list mailing list