You just need to instantiate the Window first:

win = pyglet.window.Window()

Alex.

On 02/04/2007, at 6:10 AM, Marvin Kastner, wrote:

>
> i downloaded the last code (01.04.2007) and tried to use use this
> module as the documention says, but it does not work:
>
> [EMAIL PROTECTED]:~$ python
> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import pyglet.window.key
>>>> win = pyglet.window.Window
>>>> keyboard = pyglet.window.key.KeyboardStateHandler()
>>>> win.set_handlers(keyboard)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: unbound method set_handlers() must be called with Window
> instance as first argument (got KeyboardStateHandler instance instead)
>>>>
>
>
> >

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