(self, widget, signal, handler, *args)
return(self.cnxids[widget][signal])
Register a new signal on a widget
Register a new signal on a widget
Register a new signal on a widget
def new(self, widget, signal, handler, *args):
        """Register a new signal on a widget"""
        if widget not in self.cnxids:
            dbg('creating new bucket for %s' % type(widget))
            self.cnxids[widget] = {}

        if signal in self.cnxids[widget]:
            err('%s already has a handler for %s' % (id(widget), signal))

        self.cnxids[widget][signal] = widget.connect(signal, handler, *args)
        dbg('connected %s::%s to %s' % (type(widget), signal, handler))
        return(self.cnxids[widget][signal])
def new ( self , widget , signal , handler , * args ) : if widget not in self . cnxids : dbg ( 'creating new bucket for %s' % type ( widget ) ) self . cnxids [ widget ] = { } if signal in self . cnxids [ widget ] : err ( '%s already has a handler for %s' % ( id ( widget ) , signal ) ) self . cnxids [ widget ] [ signal ] = widget . connect ( signal , handler , * args ) dbg ( 'connected %s::%s to %s' % ( type ( widget ) , signal , handler ) ) return ( self . cnxids [ widget ] [ signal ] )