Setting Mac OSX Application Menu menu bar item to other than “Python” in my python Qt application

后端 未结 6 1580
灰色年华
灰色年华 2020-12-05 14:45

I am writing a GUI application using python and Qt. When I launch my application on Mac, the first menu item in the Mac menu bar at the top of the screen is \"Python\". I

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 15:18

    I know this isn't what the OP wants exactly, but figured it could add some value to searching for a solution to this issue.

    You can make the file menus appear in your window UI instead of in the native Mac OS X system menubar:

    menubar.setNativeMenuBar(False)
    

    This will cause the menubar to appear as it would appear in e.g. Windows.

提交回复
热议问题