def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def __setitem__(self, key, value):
        self._collection[key] = self._from_python(key, value)