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

Method __init__

QPushButton/NormalStyle.py:93–105  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

91class Window(QWidget):
92
93 def __init__(self, *args, **kwargs):
94 super(Window, self).__init__(*args, **kwargs)
95 layout = QHBoxLayout(self)
96 layout.addWidget(QPushButton("red button", self,
97 objectName="RedButton", minimumHeight=48))
98 layout.addWidget(QPushButton("green button", self,
99 objectName="GreenButton", minimumHeight=48))
100 layout.addWidget(QPushButton("blue button", self,
101 objectName="BlueButton", minimumHeight=48))
102 layout.addWidget(QPushButton("orange button", self,
103 objectName="OrangeButton", minimumHeight=48))
104 layout.addWidget(QPushButton("purple button", self,
105 objectName="PurpleButton", minimumHeight=48))
106
107
108if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

addWidgetMethod · 0.80

Tested by

no test coverage detected