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

Method __init__

QtWinExtras/TaskbarProgress.py:28–38  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

26class Window(QWidget):
27
28 def __init__(self, *args, **kwargs):
29 super(Window, self).__init__(*args, **kwargs)
30 # 获取任务栏按钮
31 self.taskButton = QWinTaskbarButton(self)
32 # 获取任务栏进度条
33 self.taskProgress = self.taskButton.progress()
34 # 定时器模拟进度
35 self.timerProgress = QTimer(self)
36 self.timerProgress.timeout.connect(self.update_progress)
37
38 self.setup_ui()
39
40 def showEvent(self, event):
41 super(Window, self).showEvent(event)

Callers

nothing calls this directly

Calls 1

setup_uiMethod · 0.95

Tested by

no test coverage detected