def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def add_item(self, item):
    self._vbox_items.pack_start(item.widget, expand=False, fill=False)