(self, to_row, to_col, scroll_ok=True)
Set the current position.
Set the current position.
Set the current position .
def set_pos(self, to_row, to_col, scroll_ok=True):
        """Set the current position."""
        self.overflow = False
        self.current_row, self.current_col = to_row, to_col
        # move cursor and reset cursor attribute
        # this may alter self.current_row, self.current_col
        self._update_cursor_position(scroll_ok)
def set_pos ( self , to_row , to_col , scroll_ok = True ) : self . overflow = False self . current_row , self . current_col = to_row , to_col # move cursor and reset cursor attribute # this may alter self.current_row, self.current_col self . _update_cursor_position ( scroll_ok )