How to change the OSX menubar in wxPython without any opened window?

Posted by gyim on Stack Overflow See other posts from Stack Overflow or by gyim
Published on 2010-05-29T09:02:41Z Indexed on 2010/05/29 11:42 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

I am writing a wxPython application that remains open after closing all of its windows - so you can still drag & drop new files onto the OSX dock icon (I do this with myApp.SetExitOnFrameDelete(False)).

Unfortunately if I close all the windows, the OSX menubar will only contain a "Help" menu. I would like to add at least a File/Open menu item, or just keep the menubar of the main window. Is this somehow possible in wxPython?

In fact, I would be happy with a non-wxPython hack as well (for example, setting the menu in pyobjc). wxPython development in OSX is such a hack anyway ;)

© Stack Overflow or respective owner

Related posts about python

Related posts about osx