Hi folks, noobie here. Just started playing with pyglet two nights ago. 
Adoring it.

I'm struggling a little with event handlers, and how/where to use them in 
actual code (as opposed to didactic examples).

The problem I am experiencing is inside a function definition: initialising 
a variable before the event handler bit, and then referencing said variable 
inside the event handler, causes an UnboundLocalError exception ("local 
variable 'select' referenced before assignment").

Why doesn't this work? C-C-C-CODE EXAMPLE: http://pastebin.com/5VYYp8ay

Any help appreciated. :)

-- 
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 http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to