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!!!
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