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

Method __init__

QtRemoteObjects/SyncUi/WindowMaster.py:26–38  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

24 progressValueChanged = pyqtSignal(int)
25
26 def __init__(self, *args, **kwargs):
27 super(WindowMaster, self).__init__(*args, **kwargs)
28 self.setupUi()
29
30 # 开启节点
31 host = QRemoteObjectHost(QUrl('local:WindowMaster'), parent=self)
32 host.enableRemoting(self, 'WindowMaster')
33 print('开启节点完成')
34
35 # 定时器更新进度条
36 self._value = 0
37 self.utimer = QTimer(self, timeout=self.updateProgress)
38 self.utimer.start(200)
39
40 def setupUi(self):
41 self.setWindowTitle('WindowMaster')

Callers

nothing calls this directly

Calls 2

setupUiMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected