I've got a Pyglet app (actually a cocos2d game which uses Pyglet) and I've used py2app to create an .app bundle. When I launch the app, the window doesn't appear until I click on another app and then click onto my app's icon in the dock. Has anybody else seen this behavior? My setup:
<winstonwo...@cal.berkeley.edu> wrote:
> I've got a Pyglet app (actually a cocos2d game which uses Pyglet) and I've used py2app to create an .app bundle. When I launch the app, the window doesn't appear until I click on another app and then click onto my app's icon in the dock. Has anybody else seen this behavior? My setup:
> MacOSX 10.7.3
> Pyglet 1.2 dev
> Python 2.7.2
> -Winston
> --
> You received this message because you are subscribed to the Google Groups "pyglet-users" group.
> To post to this group, send email to pyglet-users@googlegroups.com.
> To unsubscribe from this group, send email to pyglet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
> Does it happen before you create the .app bundle?
> ~ Nathan
> On Fri, Apr 20, 2012 at 12:57 PM, Winston Wolff
> <winstonwo...@cal.berkeley.edu> wrote:
>> I've got a Pyglet app (actually a cocos2d game which uses Pyglet) and I've used py2app to create an .app bundle. When I launch the app, the window doesn't appear until I click on another app and then click onto my app's icon in the dock. Has anybody else seen this behavior? My setup:
>> MacOSX 10.7.3
>> Pyglet 1.2 dev
>> Python 2.7.2
>> -Winston
>> --
>> You received this message because you are subscribed to the Google Groups "pyglet-users" group.
>> To post to this group, send email to pyglet-users@googlegroups.com.
>> To unsubscribe from this group, send email to pyglet-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups "pyglet-users" group.
> To post to this group, send email to pyglet-users@googlegroups.com.
> To unsubscribe from this group, send email to pyglet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
winstonwo...@cal.berkeley.edu> wrote:
> If I run the python script from the command line, i.e. it has not been
> bundled into an App, the window does come to the front.
> -ww
I have no clue what branch 1.2 dev is at this point. Is that a Carbon or
Cocoa based pyglet?
Along with all the fullscreen stuff in 10.7's window manager, they seem to
have changed how apps grab focus. The approach I used in the Cocoa port is
pretty much a hack, and I never have tested it from within an .app bundle
(theoretically, the hack should be unnecessary, and possibly detrimental,
when running from an app bundle).