

def _propsetinputcursormode(self, value):
    if (value in (None, 'underline', 'insert', 'box')):
        self._inputcursormode = value
    elif (value is False):
        self._inputcursormode = None
    elif (value is True):
        self._inputcursormode = 'underline'
    else:
        self._inputcursormode = None

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseSurface._propsetinputcursormode/original