keypressmgr.py
def _callBoundFunc(self, kb): # {{{1
    "Private: call the function defined in the keybind object"
    wantKeys = False
    if kb["wantKeyInfo"] in (True, False):
      wantKeys = kb["wantKeyInfo"]
    func = kb["func"]
    funcArgs = [self._keys] if wantKeys else []
    funcKwargs = {}
    funcArgs.extend(kb["extraArgs"])
    funcKwargs.update(kb["extraKwargs"])
    if self._debug:
      logger.debug("Calling {}(*{}, **{})".format(func, funcArgs, funcKwargs))
    return func(*funcArgs, **funcKwargs)
Private: call the function defined in the keybind object
call the function defined in the keybind object
call the function defined in the keybind object
def _callBoundFunc(self, kb): 
    wantKeys = False
    if kb["wantKeyInfo"] in (True, False):
      wantKeys = kb["wantKeyInfo"]
    func = kb["func"]
    funcArgs = [self._keys] if wantKeys else []
    funcKwargs = {}
    funcArgs.extend(kb["extraArgs"])
    funcKwargs.update(kb["extraKwargs"])
    if self._debug:
      logger.debug("Calling {}(*{}, **{})".format(func, funcArgs, funcKwargs))
    return func(*funcArgs, **funcKwargs)
def _callBoundFunc ( self , kb ) : wantKeys = False if kb [ "wantKeyInfo" ] in ( True , False ) : wantKeys = kb [ "wantKeyInfo" ] func = kb [ "func" ] funcArgs = [ self . _keys ] if wantKeys else [ ] funcKwargs = { } funcArgs . extend ( kb [ "extraArgs" ] ) funcKwargs . update ( kb [ "extraKwargs" ] ) if self . _debug : logger . debug ( "Calling {}(*{}, **{})" . format ( func , funcArgs , funcKwargs ) ) return func ( * funcArgs , ** funcKwargs )
Private: call the function defined in the keybind object
Private : call the function defined in the keybind object
# {{{1 "Private: call the function defined in the keybind object"
self
kb