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

Method __init__

Demo/FollowWindow.py:26–33  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

24class Window(QWidget):
25
26 def __init__(self, *args, **kwargs):
27 super(Window, self).__init__(*args, **kwargs)
28 layout = QVBoxLayout(self)
29 layout.addWidget(QPushButton('test', self))
30 self.tmpHwnd = None
31 # 启动定时器检测记事本的位置大小和是否关闭
32 self.checkTimer = QTimer(self, timeout=self.checkWindow)
33 self.checkTimer.start(10) # 10毫秒比较流畅
34
35 def checkWindow(self):
36 # 查找

Callers

nothing calls this directly

Calls 2

addWidgetMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected