def bind(self, callback):
        """Bind a ``callback`` to this event.
        """
        handlers = self._handlers
        if self._self is None:
            raise RuntimeError('%s already fired, cannot add callbacks' % self)
        if handlers is None:
            handlers = []
            self._handlers = handlers
        handlers.append(callback)
def bind ( self , callback ) : handlers = self . _handlers if self . _self is None : raise RuntimeError ( '%s already fired, cannot add callbacks' % self ) if handlers is None : handlers = [ ] self . _handlers = handlers handlers . append ( callback )
Bind a ``callback`` to this event.