(self, widget, signal)
Remove a signal handler
Remove a signal handler
Remove a signal handler
def remove_signal(self, widget, signal):
        """Remove a signal handler"""
        if widget not in self.cnxids:
            dbg('%s is not registered' % widget)
            return
        if signal not in self.cnxids[widget]:
            dbg('%s not registered for %s' % (signal, type(widget)))
            return
        dbg('removing %s::%s' % (type(widget), signal))
        widget.disconnect(self.cnxids[widget][signal])
        del(self.cnxids[widget][signal])
        if len(list(self.cnxids[widget].keys())) == 0:
            dbg('no more signals for widget')
            del(self.cnxids[widget])
def remove_signal ( self , widget , signal ) : if widget not in self . cnxids : dbg ( '%s is not registered' % widget ) return if signal not in self . cnxids [ widget ] : dbg ( '%s not registered for %s' % ( signal , type ( widget ) ) ) return dbg ( 'removing %s::%s' % ( type ( widget ) , signal ) ) widget . disconnect ( self . cnxids [ widget ] [ signal ] ) del ( self . cnxids [ widget ] [ signal ] ) if len ( list ( self . cnxids [ widget ] . keys ( ) ) ) == 0 : dbg ( 'no more signals for widget' ) del ( self . cnxids [ widget ] )