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

Class ComboBoxStyle

QComboBox/ComboBoxStyle.py:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
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 1

ComboBoxStyle.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected