On Nov 1, 2012, at 12:17 AM, Ned Deily <n...@acm.org> wrote: > In article <d80a7264-c2e3-40b1-be19-d349be889...@mac.com>, w...@mac.com > wrote: >> On Oct 31, 2012, at 9:11 PM, Kevin Walzer <k...@codebykevin.com> wrote: >>> On 10/31/12 5:48 PM, w...@mac.com wrote: >>>> applemenu = Menu(menubar, tearoff = FALSE) >>> >>> Add the apple name to the menu object, cf: >>> >>> applemenu = Menu(menubar, tearoff = FALSE, name='apple') >>> >>> That works for me. >> Thanks, that DOES work for the version packaged up with py2app. I guess >> there really just isn't anything to do for it when it is running directly in >> the interpreter. > > It works for me. Py2app should have nothing to do with tkinter menus > other than possibly the application name. The code should work equally > well in the interpreter or with a py2app-bundled app. Are you sure you > are invoking the right interpreter if you are depending on the shebang > line? > > -- > Ned Deily,
Ned, Thanks for the comment - but I'm puzzled. Maybe I should have been more explicit or descriptive. When running the script directly in the interpreter, that is, when I invoke is as $ ./CM_GUI_2.py in a terminal window (or as $ python CM_GUI_2.py) the first menu to the right of the Apple icon (the one I'd call the Application menu) remains named "Python" - although the menu under it now includes the items I've created. When I invoke the bundled version that is the result of the py2app packaging, that menu gets named CM_GUI_2. I've tried this on both my development system (admittedly with lots of stuff downloaded from python.org) and on my laptop, which is almost stock. It remains true even if (on the laptop) I invoke the stock Apple python interpreter from /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python and then ">>> import CM_GUI_2.py" If it really is true that running the script in a terminal window changes that Application menu name on your system, I'd REALLY like to know how to accomplish that. Thanks, Bill _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG