Hi everyone, I'm a big fan of pyglet, and I'm glad to read hear that it is still under development! I'm not sure I'm experienced enough to contribute, but I will say I've been using the development head for a few projects and haven't run into any bugs.
Anyways, here's my question: is there way to pop a specific handler? I'm using the object-oriented approach suggested in the documentation, with two objects: one that handles all the interactive stuff, and another that just logs every event. I don't want to have to worry about what order I push the handlers on. More motivation: I'm writing a framework that interfaces the API of some hardware we use in the lab with pyglet. My users aren't really programmers, so I'm trying to make it as simple as possible, and right now I have something like logger.start() and logger.stop() which push and pop handlers. There are several other things client applications will do that push handlers, and the order that these things happen shouldn't matter. The resulting behavior will be very hard to debug especially if I'm completely abstracting away from the stack metaphor. And I do not expect my users to read my documentation! So in short, I'd really like to be able to do pop_handlers(logger). Is there a way to accomplish this now? Assuming no- is there a structural reason this can't happen? Maybe I could try to patch it in... -- 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.
