Greg Ewing <[EMAIL PROTECTED]> wrote: > PyGUI currently has a form of this, except that you > only get to plug in one handler at a time. This is > enough to avoid the need for subclassing in many > cases, though. > > I could support multiple handlers, but it would > make things substantially more complicated, and I'm > not convinced it's worth it. I rarely find the need > to install multiple independent handlers for an > event. Often I want to *override* a handler and > gain complete control,
I beg to disagree. Installing multiple handlers on signals is a very crucial feature in my mind. For instance, without it it's almost impossible to have a really feature-rich designer tool which produce live dialogs (like Qt's Designer does). And how do you enable two controls when a checkbox is pressed? You're forced to write your own little function which calls the enable function? That's wasted code IMO. > and then I find that > multiple-handler systems (e.g. gtk signals) tend > to hinder more than they help. Is there a production-ready GUI toolkit that *doesn't* have multiple handlers? Giovanni Bajo _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com