Changing WxPython app Mac menu bar title?

人盡茶涼 提交于 2019-12-11 03:47:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!