Why pyglet doesn't display label on the first iteration?
On my Vista machine it is visible only after I hit Enter the second time.
import pyglet
wincfg = pyglet.gl.Config(double_buffer=False)
window = pyglet.window.Window(config=wincfg)
label = pyglet.text.Label('[]',
font_name='Lucida Console',
font_size=14,
x=10, y=10)
label.draw()
pyglet.gl.glFlush()
window.dispatch_events()
raw_input("Done.")
label.draw()
pyglet.gl.glFlush()
window.dispatch_events()
raw_input("Done.")
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/Tr5ouPliAKMJ.
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.