Hi all
I'm trying to develop an application to display images in a secondary
monitor (video beam). I'm just starting to learn pyglet, and my small
test program is not working. The problem is the following:
- When I run my program from a console located in the screen :0.0, and
I create the pyglet window in the screen :0.0 all works fine
- When I run my program from a console located in the screen :0.1, and
I create the pyglet window in the screen :0.1 all works fine
- When I run my program from a console located in the screen :0.0, and
I create the pyglet window in the screen :0.1 I can see a black
window, but no rendering is performed
- When I run my program from a console located in the screen :0.1, and
I create the pyglet window in the screen :0.0 I can see a black
window, but no rendering is performed
Any help will be appreciated.
My test code is the following
#########################################################
from numpy import *
import pyglet
platform = pyglet.window.get_platform()
display = platform.get_display(':0.0')
#display = platform.get_display(':0.1')
window=pyglet.window.Window(display=display,fullscreen=True)
window.switch_to()
label = pyglet.text.Label('Hello, world', font_name='Times New Roman',
font_size=36,
x=window.width//2, y=window.height//2, anchor_x='center',
anchor_y='center')
@window.event
def on_draw():
window.clear()
label.draw()
app=pyglet.app
app.run()
#########################################################
Regards
Ricardo
--
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.