Hi,
I have few computer with two screens.
I try this code:
'''
import pyglet
platform = pyglet.window.get_platform()
display  = platform.get_default_display()
screens  = display.get_screens()
win_0 = pyglet.window.Window(screen=screens[0], fullscreen=False)
win_1 = pyglet.window.Window(screen=screens[1], fullscreen=False)

label_0 = pyglet.text.Label('Screen 0',
                            font_name='Arial', font_size=128,
                            x=win_0.width//2, y=win_0.height//2,
                            anchor_x='center', anchor_y='center')
label_1 = pyglet.text.Label('Screen 1',
                            font_name='Arial', font_size=128,
                            x=win_1.width//2, y=win_1.height//2,
                            anchor_x='center', anchor_y='center')
@win_0.event
def on_draw():
    win_0.clear()
    label_0.draw()

@win_1.event
def on_draw():
    win_1.clear()
    label_1.draw()

pyglet.app.run()
'''
It seems not to work (in all workstations).
The first window have not problem but the window in the second screen
is empty and black.
I googling but i don't find answer.
Help me please.
Pyglet seem the only way to use multiple screens in different OS. (I
use linux but i'll use windows too)
What wrong i do?
Sorry for my bad english.
Thanks
Matteo P

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

Reply via email to