Use remove_handlers, it works as expected.
def set_off(self, dt):
print "off"
self.remove_handlers(on_key_press=self.register)-- 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.
