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

Method __init__

QComboBox/ComboBoxStyle.py:118–131  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

116
117class ComboBoxStyle(QWidget):
118 def __init__(self, *args, **kwargs):
119 super().__init__(*args, **kwargs)
120 layout = QVBoxLayout(self)
121 self.comboBox1 = QComboBox(self)
122 self.comboBox2 = QComboBox(self)
123 layout.addWidget(self.comboBox1)
124 layout.addWidget(self.comboBox2)
125
126 items = ["Item " + str(i) for i in range(10)]
127 self.comboBox1.addItems(items)
128 self.comboBox2.addItems(items)
129
130 FramelessComboBox(self.comboBox1)
131 FramelessComboBox(self.comboBox2)
132
133
134if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

FramelessComboBoxFunction · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected