Differential D4136 Diff 10170 plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/stackwidgets/debuggerwidget/debuggerwidget.py
Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/stackwidgets/debuggerwidget/debuggerwidget.py
1 | from PyQt5.QtWidgets import QWidget, QVBoxLayout, QToolBar, QTableWidget,QAction | 1 | from PyQt5.QtWidgets import QWidget, QVBoxLayout, QToolBar, QTableWidget, QAction | ||
---|---|---|---|---|---|
2 | from PyQt5.QtGui import QIcon | | |||
3 | from . import stepaction, stopaction | 2 | from . import stepaction, stopaction | ||
4 | 3 | | |||
4 | | ||||
5 | class DebuggerWidget(QWidget): | 5 | class DebuggerWidget(QWidget): | ||
6 | 6 | | |||
7 | def __init__(self, scripter, parent=None): | 7 | def __init__(self, scripter, parent=None): | ||
8 | super(DebuggerWidget, self).__init__(parent) | 8 | super(DebuggerWidget, self).__init__(parent) | ||
9 | 9 | | |||
10 | self.scripter = scripter | 10 | self.scripter = scripter | ||
11 | self.setObjectName('Debugger') | 11 | self.setObjectName('Debugger') | ||
12 | self.layout = QVBoxLayout() | 12 | self.layout = QVBoxLayout() | ||
13 | 13 | | |||
14 | self.toolbar = QToolBar() | | |||
15 | self.stopAction = stopaction.StopAction(self.scripter, self) | 14 | self.stopAction = stopaction.StopAction(self.scripter, self) | ||
15 | self.toolbar = QToolBar() | ||||
16 | self.stepAction = stepaction.StepAction(self.scripter, self) | 16 | self.stepAction = stepaction.StepAction(self.scripter, self) | ||
17 | self.toolbar.addAction(self.stopAction) | 17 | self.toolbar.addAction(self.stopAction) | ||
18 | self.toolbar.addAction(self.stepAction) | 18 | self.toolbar.addAction(self.stepAction) | ||
19 | self.disableToolbar(True) | 19 | self.disableToolbar(True) | ||
20 | 20 | | |||
21 | self.table = QTableWidget(4, 4) | 21 | self.table = QTableWidget(4, 4) | ||
22 | 22 | | |||
23 | self.layout.addWidget(self.toolbar) | 23 | self.layout.addWidget(self.toolbar) | ||
Show All 9 Lines |