what is wrong with this program?

Ali alikakakhel3 at hotmail.com
Wed Aug 18 02:23:28 CEST 2004

The following program is supposed to show a menu but it isnt showing
the drop down menus. It only shows the File and Help thing.

from Tkinter import *

def callback:
    print "Alhumdulillah

root = Tk()

#create menu

m = Menu(root)

filemenu = add_cascade(label="File", menu="filemenu")
filemenu.add_command(label="New", command=callback)
filemenu.add_command(label="Quit", command=callback)

helpmenu = Menu(m)
m.add_cascade(label="Help", menu="helpmenu")
helpmenu.add_command(label="About", command=callback)


please help me fix it

More information about the Python-list mailing list