(self)
return self.document().findBlock(cursor.selectionStart()), \
               self.document().findBlock(cursor.selectionEnd())
Return selected blocks and tuple (startBlock, endBlock)
Return selected blocks and tuple (startBlock, endBlock)
Return selected blocks and tuple ( startBlock endBlock )
def _selectedBlocks(self):
        """Return selected blocks and tuple (startBlock, endBlock)
        """
        cursor = self.textCursor()
        return self.document().findBlock(cursor.selectionStart()), \
               self.document().findBlock(cursor.selectionEnd())
def _selectedBlocks ( self ) : cursor = self . textCursor ( ) return self . document ( ) . findBlock ( cursor . selectionStart ( ) ) , self . document ( ) . findBlock ( cursor . selectionEnd ( ) )