This simple program, using the latest pyglet 1.3.0 does not trigger the
event on_mouse_press. However it does trigger on event on_mouse_release.
What am I doing wrong? Thanks.
#Using pyglet 1.3.0 we never see the on_mouse_press event
import pyglet
window = pyglet.window.Window(width=400, height=300, caption="TEST pyglet
on_mouse_press event")
@window.event
def on_mouse_press(x, y, button, modifiers):
print('on_mouse_press')
@window.event
def on_mouse_release(x, y, button, modifiers):
print('on_mouse_release')
@window.event
def on_draw():
window.clear()
#label.draw()
pyglet.app.run()
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.