(self, startBlockNumber, endBlockNumber)
Select whole lines
Select whole lines
Select whole lines
def _selectLines(self, startBlockNumber, endBlockNumber):
        """Select whole lines
        """
        startBlock = self.document().findBlockByNumber(startBlockNumber)
        endBlock = self.document().findBlockByNumber(endBlockNumber)
        cursor = QTextCursor(startBlock)
        cursor.setPosition(endBlock.position(), QTextCursor.KeepAnchor)
        cursor.movePosition(QTextCursor.EndOfBlock, QTextCursor.KeepAnchor)
        self.setTextCursor(cursor)
def _selectLines ( self , startBlockNumber , endBlockNumber ) : startBlock = self . document ( ) . findBlockByNumber ( startBlockNumber ) endBlock = self . document ( ) . findBlockByNumber ( endBlockNumber ) cursor = QTextCursor ( startBlock ) cursor . setPosition ( endBlock . position ( ) , QTextCursor . KeepAnchor ) cursor . movePosition ( QTextCursor . EndOfBlock , QTextCursor . KeepAnchor ) self . setTextCursor ( cursor )