(self, line, column)
return block.position() + column
Convert line and column number to absolute position
Convert line and column number to absolute position
Convert line and column number to absolute position
def mapToAbsPosition(self, line, column):
        """Convert line and column number to absolute position
        """
        block = self.document().findBlockByNumber(line)
        if not block.isValid():
            raise IndexError("Invalid line index %d" % line)
        if column >= block.length():
            raise IndexError("Invalid column index %d" % column)
        return block.position() + column
def mapToAbsPosition ( self , line , column ) : block = self . document ( ) . findBlockByNumber ( line ) if not block . isValid ( ) : raise IndexError ( "Invalid line index %d" % line ) if column >= block . length ( ) : raise IndexError ( "Invalid column index %d" % column ) return block . position ( ) + column