[SOLVED] Getting the window to show up on OS X Mountain Lion system python

60 views
Skip to first unread message

Nathan

unread,
Oct 11, 2012, 8:25:39 PM10/11/12
to pyglet...@googlegroups.com
Over a MONTH ago someone posted the fix to the issue tracker for the main window not showing up on Mountain Lion.


I made the change he recommended, and now pyglet works great with system python on Mountain Lion again!!!

diff -r b016e8b5a206 pyglet/app/cocoa.py
--- a/pyglet/app/cocoa.py Mon Oct 08 21:45:30 2012 -0600
+++ b/pyglet/app/cocoa.py Thu Oct 11 18:20:10 2012 -0600
@@ -91,12 +91,11 @@
         self.pool = NSAutoreleasePool.alloc().init()
         create_menu()
         self.NSApp.setActivationPolicy_(NSApplicationActivationPolicyRegular)
+
+    def start(self):
         self.NSApp.finishLaunching()
         self.NSApp.activateIgnoringOtherApps_(True)
 
-    def start(self):
-        pass
-
     def step(self, timeout=None):
         # Drain the old autorelease pool
         self.pool.drain()


~ Nathan

Richard Jones

unread,
Oct 11, 2012, 8:32:37 PM10/11/12
to pyglet...@googlegroups.com
On 12 October 2012 11:25, Nathan <nathan...@gmail.com> wrote:
> Over a MONTH ago someone posted the fix to the issue tracker for the main
> window not showing up on Mountain Lion.
>
> See comment #1 here: https://code.google.com/p/pyglet/issues/detail?id=600
>
> I made the change he recommended, and now pyglet works great with system
> python on Mountain Lion again!!!

Thanks for verifying the fix! It's now been committed :-)


Richard
Reply all
Reply to author
Forward
0 new messages