MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

Test/ChartView/ChatWidget.py:136–145  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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()

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

CodeScintillaClass · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected