Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/plugins/scripter/debugcontroller.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 6 | class DebugController (object): | |||
---|---|---|---|---|---|
46 | def currentLine(self): | 46 | def currentLine(self): | ||
47 | try: | 47 | try: | ||
48 | if self._debugger: | 48 | if self._debugger: | ||
49 | return int(self.debuggerData['code']['lineNumber']) | 49 | return int(self.debuggerData['code']['lineNumber']) | ||
50 | except: | 50 | except: | ||
51 | return 0 | 51 | return 0 | ||
52 | 52 | | |||
53 | def updateUIDebugger(self): | 53 | def updateUIDebugger(self): | ||
54 | widget = self.scripter.uicontroller.findStackWidget('Debugger') | 54 | widget = self.scripter.uicontroller.findTabWidget('Debugger') | ||
55 | exception = self._debuggerException() | 55 | exception = self._debuggerException() | ||
56 | 56 | | |||
57 | if exception: | 57 | if exception: | ||
58 | self.scripter.uicontroller.showException(exception) | 58 | self.scripter.uicontroller.showException(exception) | ||
59 | if not self.isActive or self._quitDebugger(): | 59 | if not self.isActive or self._quitDebugger(): | ||
60 | widget.disableToolbar(True) | 60 | widget.disableToolbar(True) | ||
61 | 61 | | |||
62 | self.scripter.uicontroller.repaintDebugArea() | 62 | self.scripter.uicontroller.repaintDebugArea() | ||
Show All 21 Lines |