8.5.4.1.11. pymodaq_gui.parameter.pymodaq_ptypes.table module

class pymodaq_gui.parameter.pymodaq_ptypes.table.TableParameter(**opts)[source]

Bases: Parameter

Attributes

Type

itemClass

instance of TableParameterItem

Parameter

instance of pyqtgraph parameter

Methods

setValue(value)

Set the value of this Parameter; return the actual value that was set.

itemClass

itemClass

Editable string; displayed as large text box in the tree.

Methods

alias of TableParameterItem

setValue(value)[source]

Set the value of this Parameter; return the actual value that was set. (this may be different from the value that was requested)

class pymodaq_gui.parameter.pymodaq_ptypes.table.TableParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Methods

makeWidget()

Make and initialize an instance of TableWidget.

makeWidget()[source]

Make and initialize an instance of TableWidget.

Returns:

table – The initialized table.

Return type:

instance of TableWidget.

See also

TableWidget

class pymodaq_gui.parameter.pymodaq_ptypes.table.TableWidget[source]

Bases: QTableWidget

Attributes*

Type

valuechanged

instance of pyqt Signal

QtWidgets

instance of QTableWidget

Methods

get_table_value()

Get the contents of the self coursed table.

set_table_value(data_dict)

Set the data values dictionnary to the custom table.

valuechanged

get_table_value()[source]

Get the contents of the self coursed table.

Returns:

data – The getted values dictionnary.

Return type:

ordered dictionnary

set_table_value(data_dict)[source]

Set the data values dictionnary to the custom table.

Parameters

Type

Description

data_dict

ordered dictionnary

the contents to be stored in the custom table

valuechanged

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision