Question

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?

Était-ce utile?

La solution

Be sure to use Py2app, and make sure the .plist is filled out correctly, IE CFBundleName and CFBundleDisplayName.

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top