(self, *args, **kwargs)
| 134 | runSignal = pyqtSignal(str) |
| 135 | |
| 136 | def __init__(self, *args, **kwargs): |
| 137 | super(CodeWidget, self).__init__(*args, **kwargs) |
| 138 | layout = QVBoxLayout(self, spacing=0) |
| 139 | layout.setContentsMargins(0, 0, 0, 0) |
| 140 | |
| 141 | self.runButton = QPushButton( |
| 142 | "运行", self, objectName="RunButton", clicked=self.onRunButton) |
| 143 | self.codeScintilla = CodeScintilla(self) |
| 144 | layout.addWidget(self.runButton) |
| 145 | layout.addWidget(self.codeScintilla) |
| 146 | |
| 147 | def onRunButton(self): |
| 148 | text = self.text() |