| Home | Trees | Index | Help |
|---|
| Package ocempgui :: Package events :: Module INotifyable :: Class INotifyable |
|
object --+
|
INotifyable
BaseObject
INotifyable () -> INotifyable
A notifier interface class for event-capable objects.
The INotifyable class is an interface, which should be used by
objects, that make use of events using the EventManager class. It
declares a single method, notify(), which consumes the events the
object listens to.
A short example for consuming events:
class EventObject (INotifyable):
def __init__ (self):
....
def notify (self, event):
if event.signal == 'EventObjectSignal':
self.do_certain_action ()
...
| Method Summary | |
|---|---|
I.notify (...) -> None | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
notify(self, event)I.notify (...) -> None Notifies the object about an event. This method has to be implemented by inherited classes. Its signature matches the basic requirements of the EventManager class. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 10 10:18:43 2008 | http://epydoc.sf.net |