8.5.4.1.12. pymodaq_gui.parameter.pymodaq_ptypes.tableview module

class pymodaq_gui.parameter.pymodaq_ptypes.tableview.TableViewCustom(menu=False)[source]

Bases: QTableView

Attributes*

Type

valuechanged

instance of pyqt Signal

QtWidgets

instance of QTableWidget

Methods

contextMenuEvent(self, a0)

add

add_data_signal

clear

data_has_changed

get_table_value

load_data_signal

remove

remove_row_signal

save_data_signal

set_table_value

setmenu

valueChanged

add()[source]
clear()[source]
contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
data_has_changed(topleft, bottomright, roles)[source]
get_table_value()[source]
remove()[source]
set_table_value(data_model)[source]
setmenu(status)[source]
add_data_signal

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

load_data_signal

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

remove_row_signal

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

save_data_signal

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

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

class pymodaq_gui.parameter.pymodaq_ptypes.tableview.TableViewParameter(**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

alias of TableViewParameterItem

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.tableview.TableViewParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Methods

makeWidget()

Make and initialize an instance of Table_custom.

optsChanged(param, opts)

makeWidget()[source]

Make and initialize an instance of Table_custom.

Returns:

table – The initialized table.

Return type:

instance of Table_custom.

See also

Table_custom

optsChanged(param, opts)[source]
Called when any options are changed that are not name, value, default, or limits.

If widget is a SpinBox, pass options straight through.
So that only the display label is shown when visible option is toggled.

Parameters

Type

Description

param

instance of pyqtgraph parameter

the parameter to check

opts

string list

the associated options list

See also

optsChanged