8.5.6.1.8. pymodaq_gui.utils.widgets.table module
- class pymodaq_gui.utils.widgets.table.BooleanDelegate(*args, **kwargs)[source]
Bases:
QStyledItemDelegateTO implement custom widget editor for cells in a tableview
Methods
createEditor
setEditorData
setModelData
- class pymodaq_gui.utils.widgets.table.MyStyle(*args, **kwargs)[source]
Bases:
QProxyStyleMethods
drawPrimitive(element, option, painter[, widget])Draw a line across the entire row rather than just the column we're hovering over.
- class pymodaq_gui.utils.widgets.table.SpinBoxDelegate(*args: Any, **kwargs: Any)[source]
Bases:
QStyledItemDelegateMethods
createEditor
setEditorData
setModelData
- class pymodaq_gui.utils.widgets.table.TableModel(data, header, editable=True, parent=None, show_checkbox=False, cast=<class 'float'>)[source]
Bases:
QAbstractTableModel- Attributes:
- raw_data
Methods
columnCount(*args, **kwargs)data(index, role)dropMimeData(data, action, row, column, parent)flags(index)headerData(section, orientation, role)insertRows(row, count, parent)removeRows(row, count, parent)rowCount(*args, **kwargs)setData(index, value, role)validate_data(row, col, value)to be subclassed in order to validate ranges of values for the cell defined by index :param index: :type index:
(QModelIndex):type value:(strorfloatorintor):param value: :type value:(strorfloatorintor)clear
get_data
get_data_all
insert_data
is_checked
remove_row
set_data_all
- validate_data(row, col, value)[source]
to be subclassed in order to validate ranges of values for the cell defined by index :param index: :type index:
(QModelIndex):type value:(strorfloatorintor):param value: :type value:(strorfloatorintor)- Returns:
bool
- Return type:
True if value is valid for the given rowandcol
- property raw_data