def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def remove_item_widget(self):
    self._hbox.remove(self._item_widget)