def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def showOutputOnScreen(self):
        self.debug = True
        self.trace = True
        self._log = None
        self._setupLog()