[Tutor] Creating simple windows in XP

Alan Gauld alan.gauld at btinternet.com
Fri Jan 16 00:45:01 CET 2009


"Alex Krycek" <agent.krycek at gmail.com> wrote

> EasyGui is pretty simple, but I relying on standard tools. I liked 
> how in
> VB, for example, to open a dialog box you could write:
>
> MsgBox("Text", vbOKOnly, "Title").
>

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.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list