8.5.4.1.12. pymodaq_gui.parameter.pymodaq_ptypes.tableview module
- class pymodaq_gui.parameter.pymodaq_ptypes.tableview.TableViewCustom(menu=False)[source]
Bases:
QTableViewAttributes*
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_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:
ParameterAttributes
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
- class pymodaq_gui.parameter.pymodaq_ptypes.tableview.TableViewParameterItem(param, depth)[source]
Bases:
WidgetParameterItemMethods
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