def insertIndent():
            if self.useTabs:
                cursor.insertText('\t')
            else:  # indent to integer count of indents from line start
                charsToInsert = self.width - (len(self._qpart.textBeforeCursor()) % self.width)
                cursor.insertText(' ' * charsToInsert)
def __init__(self, key, child_proxy):
        try:
            self._key = int(key)
        except ValueError:
            self._key = key
        self._child_proxy = child_proxy