Martin,
> The problem isn't with your understanding of decorators, it's with > your understanding of how Python interprets class definitions. > This happens to me a lot. The majority of my problems originate between the keyboard and the chair :-) > class Engine(object): > def __init__(self): > # Open a window. > self.window = pyglet.window.Window() > self.window.clear() > self.window.push_handlers(self) > > # Game loop. > pyglet.app.run() > ... > Hope this helps, It certainly does, that was exactly what I was looking for. Thanks. --Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
