mip_dmp.qt5.model.table_model module

Module to describe Qt/PySide2 Table Models.

class mip_dmp.qt5.model.table_model.NoEditorDelegate[source]

Bases: QItemDelegate

Class to define a custom item delegate with no editor.

createEditor(parent, opt, index)[source]

Create the editor for the given index.

staticMetaObject = <PySide2.QtCore.QMetaObject object>
class mip_dmp.qt5.model.table_model.PandasTableModel(data)[source]

Bases: QAbstractTableModel

Qt Table Model for Pandas DataFrames.

columnCount(index)[source]

Return the number of columns in the table.

data(index, role)[source]

Return the data for the given index and role.

flags(index)[source]

Return the flags for the given index.

headerData(section, orientation, role)[source]

Return the header data for the given section.

rowCount(index)[source]

Return the number of rows in the table.

setData(index, value, role)[source]

Set the data for the given index and role.

staticMetaObject = <PySide2.QtCore.QMetaObject object>
class mip_dmp.qt5.model.table_model.QComboBoxDelegate(*args, **kwargs)[source]

Bases: QItemDelegate

Class to define a custom item delegate with QComboBox editor.

createEditor(self, parent: PySide2.QtWidgets.QWidget, option: PySide2.QtWidgets.QStyleOptionViewItem, index: PySide2.QtCore.QModelIndex) PySide2.QtWidgets.QWidget[source]
setItems(items)[source]
staticMetaObject = <PySide2.QtCore.QMetaObject object>