8.5.4.1.5. pymodaq_gui.parameter.pymodaq_ptypes.itemselect module
- class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelect(*args: Any, **kwargs: Any)[source]
Bases:
QListWidgetMethods
Get the all_items list from the self QtWidget attribute.
doubleClickSelection(item)Function to select item.
Get the dictionnary of values contained in the QtWidget attribute.
select_item(item[, doSelect])Function to select item.
set_value(values)Set values to the all_items attributes filtering values by the 'selected' key.
sizeHint
- all_items()[source]
Get the all_items list from the self QtWidget attribute.
- Returns:
The item list.
- Return type:
- doubleClickSelection(item)[source]
Function to select item. The selection depends if the item uses checkbox or not.
- get_value()[source]
Get the dictionnary of values contained in the QtWidget attribute.
- Returns:
The dictionnary of all_items compared to the selectedItems.
- Return type:
dictionnary
- select_item(item, doSelect=False)[source]
Function to select item. The selection depends if the item uses checkbox or not.
- class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelectParameter(**opts)[source]
Bases:
ParameterEditable string; displayed as large text box in the tree.
Attributes
Type
itemClass
instance of ItemSelectParameterItem
sigActivated
instance of pyqt Signal
Methods
activate()Activate the "Activated" signal attribute0
itemClass
sigActivated
- itemClass
alias of
ItemSelectParameterItem
- class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelectParameterItem(param, depth)[source]
Bases:
WidgetParameterItemMethods
Remove the selected Qwidget items by removing the entries in the parameter attribute.
optsChanged(param, opts)Called when any options are changed that are not name, value, default, or limits.
Append to the param attribute the dictionnary obtained from the QtWidget add parameter procedure.
valueChanged
- makeWidget()[source]
- Make and initialize an instance of ItemSelect_pb with itemselect value.Connect the created object with the plus and minus buttonClicked function.
- mb_buttonClicked()[source]
Remove the selected Qwidget items by removing the entries in the parameter attribute.
- optsChanged(param, opts)[source]
Called when any options are changed that are not name, value, default, or limits.
See also