keypressmgr.py
def _stateGetter(*states): # {{{0
  "Decorator: key state getter: return whether or not key is in states"
  def decoratorFunc(func):
    @functools.wraps(func)
    def getterFunc(self, key):
      if self._keys is not None:
        return self._keys.get(key, None) in states
    return getterFunc
  return decoratorFunc
Decorator: key state getter: return whether or not key is in states
key state getter: return whether or not key is in states
key state getter : return whether or not key is in states
def _stateGetter(*states): 
  def decoratorFunc(func):
    @functools.wraps(func)
    def getterFunc(self, key):
      if self._keys is not None:
        return self._keys.get(key, None) in states
    return getterFunc
  return decoratorFunc
def _stateGetter ( * states ) : def decoratorFunc ( func ) : @ functools . wraps ( func ) def getterFunc ( self , key ) : if self . _keys is not None : return self . _keys . get ( key , None ) in states return getterFunc return decoratorFunc
Decorator: key state getter: return whether or not key is in states
Decorator : key state getter : return whether or not key is in states
# {{{0 "Decorator: key state getter: return whether or not key is in states"