Vra

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?

Was dit nuttig?

Oplossing

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

Ander wenke

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

Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top