On Fri, Mar 29, 2013 at 8:00 PM, Clyde Wilson <cly...@clydew.org> wrote:
>
> from tkinter import *
> root=Tk()
> main=Frame(root)
> main.grid()
> def doit():
>     messagebox.showinfo("Hello")

You have to import the module first:

    from tkinter import messagebox

http://hg.python.org/cpython/file/bd8afb90ebf2/Lib/tkinter
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to