On Thu, Jan 15, 2009 at 5:45 PM, Alan Gauld <alan.ga...@btinternet.com>wrote:

> You mean like doing
>
> import tkMessageBox
> tkMessageBox.showinfo("Window Text", "A short message")
>
> in Tkinter? :-)
>
> OR
>
> res = tkMessageBox.askokcancel("Which?", "Ready to stop?")
> print res
>
> At that level Tkinter is pretty easy too.


After trying that and getting the mildly annoying root window to pop up I
did a quick search and found how to hide that window.

from Tkinter import Tk
root = Tk()
root.withdraw()
tkMessageBox.showinfo("Window", "Root window is gone!")

If you need it back, root.deiconfiy() will show the window again.

HTH,
Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to