Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def PythonCard-0.8.1::event::EventSource::addEventListener (   self,
  listener 
) [inherited]

Add an EventListener as an observer of this object.

Definition at line 213 of file event.py.

00213                                         :
        """
        Add an EventListener as an observer of this object.
        """
        if listener.__class__.__name__ == 'MessageWatcher':
            self._listeners.insert(0, listener)
        else: 
            self._listeners.append(listener)

    # KEA 2004-04-24
    # need this to disconnect the Message Watcher
    def removeEventListener(self, listener):


Generated by  Doxygen 1.6.0   Back to index