what wrong with this program?
alikakakhel3 at hotmail.com
Wed Aug 18 23:14:43 CEST 2004
Robert Kern <rkern at ucsd.edu> wrote in message news:<cfucf3$est$1 at news1.ucsd.edu>...
> Ali wrote:
> > The following program is supposed to display a dropdown menu, however,
> > it only shows the File and Help things.
> > from Tkinter import *
> > root = Tk()
> > #create menu
> > m = Menu(root)
> > root.config(menu=m)
> > filemenu = Menu(m)
> > m.add_cascade(label="File", menu="filemenu")
> The menu= argument needs to be the object itself, not a string.
> See, e.g.
ok I will try it out. Thanks for your help
More information about the Python-list