pynaviz.qt.interval_sets_selection#

Classes

ComboDelegate

Drop-down editor for colors.

IntervalSetsDialog(model[, parent])

Dialog showing a table of interval sets with: - Column 0: name + checkbox - Column 1: dropdown - Column 2: number entry

IntervalSetsModel(interval_sets)

A model to handle the dict of interval sets with checkboxes.

SpinDelegate([parent])

class pynaviz.qt.interval_sets_selection.ComboDelegate[source]#

Bases: QStyledItemDelegate

Drop-down editor for colors.

createEditor(parent, option, index)[source]#
setEditorData(editor, index)[source]#
setModelData(editor, model, index)[source]#
staticMetaObject = PySide6.QtCore.QMetaObject("ComboDelegate" inherits "QStyledItemDelegate": )#
class pynaviz.qt.interval_sets_selection.IntervalSetsDialog(model, parent=None)[source]#

Bases: QDialog

Dialog showing a table of interval sets with: - Column 0: name + checkbox - Column 1: dropdown - Column 2: number entry

Parameters:
staticMetaObject = PySide6.QtCore.QMetaObject("IntervalSetsDialog" inherits "QDialog": )#
class pynaviz.qt.interval_sets_selection.IntervalSetsModel(interval_sets)[source]#

Bases: QAbstractTableModel

A model to handle the dict of interval sets with checkboxes.

Parameters:

interval_sets (dict)

checkStateChanged#
columnCount(parent=None)[source]#
data(index, role=None)[source]#

What to display in the table view.

flags(index)[source]#
headerData(section, orientation, role)[source]#
rowCount(parent=None)[source]#
setData(index, value, role=None)[source]#

Write data to the model.

Parameters:
  • index (QModelIndex) – The index of the item to modify.

  • value (Any) – The new value to set.

  • role (Qt.ItemDataRole) – The role of the data to set.

staticMetaObject = PySide6.QtCore.QMetaObject("IntervalSetsModel" inherits "QAbstractTableModel": Methods:   #76 type=Signal, signature=checkStateChanged(QString,QString,double,bool), parameters=QString, QString, double, bool )#
class pynaviz.qt.interval_sets_selection.SpinDelegate(parent=None)[source]#

Bases: QStyledItemDelegate

createEditor(parent, option, index)[source]#
setEditorData(editor, index)[source]#
setModelData(editor, model, index)[source]#
staticMetaObject = PySide6.QtCore.QMetaObject("SpinDelegate" inherits "QStyledItemDelegate": )#