Пример #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)
Пример #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)
Пример #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()
Пример #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()