|
From: Patrick K. O'B. <po...@or...> - 2002-02-07 18:03:03
|
I've written a general event/signal dispatching mechanism that you might find useful for this. The code is available on the Python Cookbook site: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/87056 --- Patrick K. O'Brien Orbtech > -----Original Message----- > Rowland Smith wrote: [snip] > Advanced Features > > 8. Allow a user to somehow connect the events generated by > one component to the methods published by another component. > Some number of logical 'connector' classes will be required > to allow the wiring together of events and methods > to build complex behaviors. [snip] > Events > > Components generate Events. Components publish the names of the > Events that they support. > > Components register Listeners. Components notify registered Listeners > when Events occur. Each Event contains a reference to the Component > that generated the Event. |