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

Method __init__

QComboBox/Lib/CtComboBox.py:73–77  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

71class CtComboBox(QComboBox):
72
73 def __init__(self, *args, **kwargs):
74 super(CtComboBox, self).__init__(*args, **kwargs)
75 # 绑定每个元素添加信号,用于设置文本居中
76 self.model().rowsInserted.connect(self._onRowsInserted)
77 self.setStyle(ComboBoxStyle())
78
79 def _onRowsInserted(self, index, first, last):
80 if first < 0:

Callers

nothing calls this directly

Calls 1

ComboBoxStyleClass · 0.70

Tested by

no test coverage detected