Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.05 KB

combo_box.md

File metadata and controls

48 lines (34 loc) · 1.05 KB

KitComboBox

Виджет, позволяющий выбрать одно из предложенных значений

Наследует QPushButton

from PyQtUIkit.widgets import KitComboBox

combo_box = KitComboBox('item 1', 'item 2', 'item 3', 'item 4', 'item 5')

img.png img_1.png

from PyQtUIkit.widgets import KitComboBox, KitComboBoxItem

combo_box = KitComboBox()
for i in range(100):
    combo_box.addItem(KitComboBoxItem(f"Item {i + 1}", i, icon='python'))
combo_box.type = 2

img_2.png img_3.png

Параметры:

  • main_palette (KitPalette, по умолчанию 'Transparent')
  • border (int, по умолчанию 0)
  • radius (int, по умолчанию 4)
  • type (1 или 2)

Сигналы:

  • currentIndexChanged
  • currentValueChanged

Методы:

  • addItem
  • deleteItem
  • clear
  • currentItem
  • currentValue
  • setCurrentIndex

◀ На главную страницу