Hi Michael, Thank you very much for the help.
I tried the simpler code you provided, but unfortunatly I still got a blank window without any trace of menubars. Any other insights? Thanks, Joe ======== from Tkinter import * root = Tk() menubar = Menu(root) menu = Menu(menubar, tearoff=0) menubar.add_cascade(label="File", menu=menu) menu.add_command(label="New") menu = Menu(menubar, tearoff=0) menubar.add_cascade(label="Edit", menu=menu) menu.add_command(label="Cut") menu.add_command(label="Copy") menu.add_command(label="Paste") root.config(menu=menubar) root.mainloop() ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ---- On Wed, 16 Nov 2005, Michael Lange ([EMAIL PROTECTED]) wrote: > On Tue, 15 Nov 2005 16:17:53 -0500 > Double Six <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I am testing the following Tkinter code (attached at the end of > > this message) by Fredrik Lundh on a Mac OS X 10.4.2 with Python > > version 2.3. I do get a root window, but it is totally blank > > without the desirable menubars such as File and Edit. What am I > > missing? > > > <snip> > > It works well for me (on linux, python-2.3), maybe a mac specific thing (sorry , I can't help then). > Does the following, simpler code work for you? > > from Tkinter import * > > root = Tk() > menubar = Menu(root) > menu = Menu(menubar, tearoff=0) > menubar.add_cascade(label="File", menu=menu) > menu.add_command(label="New") > menu = Menu(menubar, tearoff=0) > menubar.add_cascade(label="Edit", menu=menu) > menu.add_command(label="Cut") > menu.add_command(label="Copy") > menu.add_command(label="Paste") > root.config(menu=menubar) > root.mainloop() > > The only thing that looks a little starnge to me in the original code is > that the menubar is created as a child of the AppUi class, which is basically a Frame, > but then it is attached to that Frame's parent (the root window). > Maybe the mac doesn't like this (just a thought)? > > Michael _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor