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

Method __init__

Demo/QtThreading.py:44–53  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

42class Window(QWidget):
43
44 def __init__(self, *args, **kwargs):
45 super(Window, self).__init__(*args, **kwargs)
46 self.resize(400, 400)
47 layout = QVBoxLayout(self)
48 self.progressBar = QProgressBar(self)
49 layout.addWidget(self.progressBar)
50 Signals.updateProgress.connect(
51 self.progressBar.setValue, type=Qt.QueuedConnection)
52
53 QTimer.singleShot(2000, self.doStart)
54
55 def doStart(self):
56 self.updateThread = UpdateThread(daemon=True)

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.95
addWidgetMethod · 0.80

Tested by

no test coverage detected