Thanks. I pulled your fix and also grafted it into 1.2-maintenance, so it will also be part of 1.2.3.
Rob Op maandag 27 april 2015 17:24:38 UTC+2 schreef Florian Höch: > > Thanks, after some reading about NSApplication and NSMenu it was fairly > straight-forward to come up with a fix. I've created a pull request with > the changes. > > Am Montag, 27. April 2015 03:00:19 UTC+2 schrieb Phillip Nguyen: >> >> >> The application menu is set up in the create_menu() function of >> pyglet/app/cocoa.py. I’ve not tried to use pyglet with wxPython, so I’m >> not sure how they’re interacting with each other. Perhaps pyglet should be >> doing a check to see if there is already a (non-empty) menu set before >> creating its own. In the meantime, you could try commenting out the call >> to create_menu() in CocoaEventLoop.__init__ and see if the wxPython menu >> survives. Or in the worst case, rewrite the create_menu function to suit >> your needs. The exclamation marks are a holdover from debugging that never >> got removed. >> >> —phillip >> >> On Apr 26, 2015, at 8:32 AM, Florian Höch <[email protected]> >> wrote: >> >> > Hi, >> > >> > I'm using pyglet devel (122cf30) together with wxPython (3.0.2 cocoa) >> in an application. This works well, except that under Mac OS X (Yosemite), >> after application startup pyglet replaces my menus with just an app menu >> with "Quit!" and "Hide!" entries. The way I've worked around it for now is >> by overriding the platform event loop with a dummy one in >> pyglet.app.__init__ (I only use pyglet to play sound), but a better >> solution is probably needed. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "pyglet-users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > To post to this group, send email to [email protected]. >> > Visit this group at http://groups.google.com/group/pyglet-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
