what wrong with this program?

Ali alikakakhel3 at hotmail.com
Thu Aug 19 00:02:36 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.
> 
> http://www.pythonware.com/library/tkinter/introduction/x5819-patterns.htm

ok I will try it out. Thanks for your help



More information about the Python-list mailing list