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

Method __init__

QPushButton/RubberBandButton.py:169–176  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

167class TestWindow(QWidget):
168
169 def __init__(self, *args, **kwargs):
170 super().__init__(*args, **kwargs)
171 layout = QHBoxLayout(self)
172 layout.addWidget(RubberBandButton("d", self, bgcolor="#01847E"))
173 layout.addWidget(RubberBandButton("v", self, bgcolor="#7FA91F"))
174 layout.addWidget(RubberBandButton("N", self, bgcolor="#FC8416"))
175 layout.addWidget(RubberBandButton("U", self, bgcolor="#66D3c0"))
176 layout.addWidget(RubberBandButton("a", self, bgcolor="#F28195"))
177
178
179if __name__ == "__main__":

Callers 1

__init__Method · 0.45

Calls 2

RubberBandButtonClass · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected