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: QListWidget

Methods

all_items()

Get the all_items list from the self QtWidget attribute.

doubleClickSelection(item)

Function to select item.

get_value()

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:

list

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.

set_value(values)[source]

Set values to the all_items attributes filtering values by the ‘selected’ key.

Parameters

Type

Description

values

dictionnary

the values dictionnary to be setted.

sizeHint()[source]
class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelectParameter(**opts)[source]

Bases: Parameter

Editable 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

activate()[source]

Activate the “Activated” signal attribute0

class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelectParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Methods

makeWidget()

mb_buttonClicked()

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.

pb_buttonClicked()

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

optsChanged

pb_buttonClicked()[source]

Append to the param attribute the dictionnary obtained from the QtWidget add parameter procedure.

valueChanged(param, val, force=False)[source]
class pymodaq_gui.parameter.pymodaq_ptypes.itemselect.ItemSelect_pb(*args: Any, **kwargs: Any)[source]

Bases: QWidget

Methods

initUI

initUI(checkbox=False)[source]