(self, overwrite_shape)
Set the cursor to one of two default shapes.
Set the cursor to one of two default shapes.
Set the cursor to one of two default shapes .
def set_default_shape(self, overwrite_shape):
        """Set the cursor to one of two default shapes."""
        if overwrite_shape:
            # most modes have cursor on last line
            self.set_shape(*self._mode.cursor_shape)
        else:
            # half-block cursor for insert
            self.set_shape(self._height//2, self._height-1)
def set_default_shape ( self , overwrite_shape ) : if overwrite_shape : # most modes have cursor on last line self . set_shape ( * self . _mode . cursor_shape ) else : # half-block cursor for insert self . set_shape ( self . _height // 2 , self . _height - 1 )