(self, row, col)
Returns position of specified column
Returns position of specified column
Returns position of specified column
def _getpos_fromrowcol(self, row, col):
        """Returns position of specified column"""

        if not row.cols:
            return row.posfrom

        p = 0
        col = col - row.wrapindent
        for pos, charcols, c in zip(row.positions, row.cols, row.chars):
            if (p + charcols > col) or (c == '\n'):
                return pos
            p += charcols
        else:
            if self.is_lastrow(row):
                return row.posto
            else:
                ret = row.positions[-1]
                return ret
def _getpos_fromrowcol ( self , row , col ) : if not row . cols : return row . posfrom p = 0 col = col - row . wrapindent for pos , charcols , c in zip ( row . positions , row . cols , row . chars ) : if ( p + charcols > col ) or ( c == '\n' ) : return pos p += charcols else : if self . is_lastrow ( row ) : return row . posto else : ret = row . positions [ - 1 ] return ret