问题
I've made a .app with my WxPython script, and it's just about finished. The problem is, the menu bar title reads "Python". How can this be changed? Would I use wx.Menu()/wx.MenuBar(), or is this a problem with the .app file itself?
回答1:
Be sure to use Py2app, and make sure the .plist is filled out correctly, IE CFBundleName and CFBundleDisplayName.
回答2:
Edit: My old answer does not work.
This question is related to yours, though they are asking about QT: Setting Mac OSX Application Menu menu bar item to other than "Python" in my python Qt application
A basic summary: You can't do it with the python code. You must create an application bundle. One of the answers at that post links to a basic how-to.
Also, have a look at py2app: http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
来源:https://stackoverflow.com/questions/12633100/changing-wxpython-app-mac-menu-bar-title