Hi,
I'm really enjoying learning pyglet.
One problem I'm running into is that I would like to create a
fullscreen window on my second monitor. Here's the code:
from pyglet import window
platform = window.get_platform()
display = platform.get_default_display()
screen = display.get_screens()[1]
win = window.Window(fullscreen=True, screen=screen)
When I run it I get this error:
Traceback (most recent call last):
File "pgtest.py", line 5, in <module>
win = window.Window(fullscreen=True, screen=screen)
File "/Users/amos/Dev/pyglet/pyglet/window/__init__.py", line 616,
in __init__
self._create()
File "/Users/amos/Dev/pyglet/pyglet/window/carbon/__init__.py", line
527, in _create
_aglcheck()
File "/Users/amos/Dev/pyglet/pyglet/window/carbon/__init__.py", line
1272, in _aglcheck
raise CarbonException(agl.aglErrorString(err))
pyglet.window.carbon.CarbonException: <ctypes.LP_c_ubyte object at
0x11b2d50>
The program works just fine when I use screen 0 rather than screen 1.
Also it works fine if I don't use fullscreen. So it seems that I can
use fullscreen or a secondary screen, but not both.
I am using python2.5, pyglet from subversion, and am running on a mac.
Thanks for any suggestions!
-Amos
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---