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

Method __init__

QtQuick/Signals.py:92–100  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

90 timerSignal = pyqtSignal(str)
91
92 def __init__(self, *args, **kwargs):
93 super(Window, self).__init__(*args, **kwargs)
94 layout = QVBoxLayout(self)
95 layout.addWidget(QPushButton('Python调用qml中的函数',
96 self, clicked=self.callQmlFunc))
97 self.resultView = QTextBrowser(self)
98 layout.addWidget(self.resultView)
99 self._timer = QTimer(self, timeout=self.onTimeout)
100 self._timer.start(2000)
101
102 def onTimeout(self):
103 # 定时器发送信号通知qml

Callers

nothing calls this directly

Calls 2

addWidgetMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected