Beispiel #1
0
    def afterLock(self, terp, mode, **_):
        self.gui.startWork()
        self.gui.setRunning(True)
        self.gui.editor.editable = False

        self.redirect.install()

        StoppableInput.setThingToStop(self)
        StoppableOutput.setThingToStop(self)
Beispiel #2
0
    def afterLock(self, terp, mode, **_):
        self.gui.startWork()
        self.gui.setRunning(True)
        self.gui.editor.editable = False

        self.redirect.install()

        StoppableInput.setThingToStop(self)
        StoppableOutput.setThingToStop(self)
Beispiel #3
0
    def beforeUnlock(self, terp, mode, **_):
        StoppableInput.setThingToStop(None)
        StoppableOutput.setThingToStop(None)

        self.redirect.uninstall()

        self.gui.editor.document.removeLineHighlighting()
        self.gui.editor.editable = True
        self.gui.setRunning(False)
        self.gui.stopWork()
Beispiel #4
0
    def beforeUnlock(self, terp, mode, **_):
        StoppableInput.setThingToStop(None)
        StoppableOutput.setThingToStop(None)

        self.redirect.uninstall()

        self.gui.editor.document.removeLineHighlighting()
        self.gui.editor.editable = True
        self.gui.setRunning(False)
        self.gui.stopWork()
Beispiel #5
0
def showError(message):
    return StoppableOutput.showError(message)
Beispiel #6
0
def showInformation(message):
    return StoppableOutput.showInformation(message)
Beispiel #7
0
def showWarning(message):
    return StoppableOutput.showWarning(message)