MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QPropertyAnimation/ShakeWindow.py:23–27  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

21class Window(QWidget):
22
23 def __init__(self, *args, **kwargs):
24 super(Window, self).__init__(*args, **kwargs)
25 self.resize(400, 400)
26 layout = QVBoxLayout(self)
27 layout.addWidget(QPushButton('抖动', self, clicked=self.doShake))
28
29 def doShake(self):
30 self.doShakeWindow(self)

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.95
addWidgetMethod · 0.80

Tested by

no test coverage detected