Skip to content

hardware_sets_combo_box

frog.gui.hardware_set.hardware_sets_combo_box ¤

Provides a combo box for choosing between hardware sets.

Classes¤

HardwareSetsComboBox() ¤

Bases: QComboBox

A combo box for choosing between hardware sets.

Create a new HardwareSetsComboBox.

Source code in frog/gui/hardware_set/hardware_sets_combo_box.py
16
17
18
19
20
21
22
def __init__(self) -> None:
    """Create a new HardwareSetsComboBox."""
    super().__init__()
    self._load_hardware_set_list()

    pub.subscribe(self._on_hardware_set_added, "hardware_set.added")
    pub.subscribe(self._load_hardware_set_list, "hardware_set.removed")
Attributes¤
current_hardware_set property writable ¤

Return the currently selected hardware set.

Returns None if no item is selected.

current_hardware_set_devices property ¤

Return the currently selected hardware set's devices.

If the combo box is empty and, therefore, no hardware set is selected, an empty set is returned.

Functions¤

Functions¤