Hello,

I'm using pyglet 1.1.3 on windows XP, python2.6. In deriving a class
with Window() as a base, I noticed that overriding the on_key_release
() did not seem to work. None of the code in this method would run
when I released a key, while on_key_press() worked fine.

>From the command line, it seems pretty clear:

>>> import pyglet
>>> w = pyglet.window.Window()

Then typing

>>> w.on_key_press

gives the result

<bound method Win32Window.on_key_press of
<pyglet.window.win32.Win32Window object at 0x03328EB0>>

and typing

>>> w.on_key_release

gives the result

AttributeError: 'Win32Window' object has no attribute 'on_key_release'

While typing, auto-complete also shows me that on_key_release is not
in the list. So it seems I don't have access to the on_key_release,
but it is in the documentation.

Anyone else experiencing this?

Regards,
Jack

--

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


Reply via email to