how do i make a grapical thingie?

Al Gonzalez alberto at
Thu Aug 30 22:23:14 CEST 2001

See Tkinter for information on gui stuff.

wxPython also seems to be a pretty nice library for gui's

# -- Start Code
import tkMessageBox

text = "Hello Jeroen!"
tkMessageBox.showinfo("Message", text)

text = "Do you like Python so far?"
if tkMessageBox.askyesno("Question", text):
    text = "It can become addictive :-)"
    tkMessageBox.showwarning("Warning", text)
    text = "Give it some more time"
    tkMessageBox.showerror("Error", text)

#-- End Code

There are also functions named askquestion, askokcancel and askretrycancel.

I've been using it for about a week and am having fun learning and also
up with small projects to practice on.

Note: When you get to using databases, you might want to look into MetaKit.

"jeroen paul goudsmit" <hcj.goudsmit at> wrote in message
news:fbwj7.40$YN5.244 at
> I'm using python for one day now, and the only thing i van do is import
> and exit() and print "hello". I want messageboxes! how?

More information about the Python-list mailing list