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

Method __init__

QPushButton/RotateButton.py:198–216  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

196class TestWindow(QWidget):
197
198 def __init__(self, *args, **kwargs):
199 super().__init__(*args, **kwargs)
200 layout = QHBoxLayout(self)
201
202 btn = RotateButton("pyqt.site", self)
203 btn.setMinimumHeight(96)
204 btn.setToolTip("旋转按钮")
205 layout.addWidget(btn)
206
207 btn = RotateButton("", self)
208 btn.setMinimumHeight(96)
209 btn.setObjectName("imageLabel1")
210 btn.setPixmap("./Data/Images/avatar.jpg")
211 layout.addWidget(btn)
212
213 btn = RotateButton("", self)
214 btn.setMinimumHeight(96)
215 btn.setObjectName("imageLabel2")
216 layout.addWidget(btn)
217
218
219if __name__ == "__main__":

Callers 1

__init__Method · 0.45

Calls 3

setPixmapMethod · 0.95
RotateButtonClass · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected