SelectionProxy

Inheritance diagram of rumbapy.SelectionProxy
class SelectionProxy(model, parent=None)

Bases: PySide.QtGui.QItemSelectionModel

The class works as an interface between the Qt views selection model and the rumba model

Constructors

__init__(model[, parent]) x.__init__(…) initializes x; see help(type(x)) for signature
__init__(model, parent=None)

x.__init__(…) initializes x; see help(type(x)) for signature

select(selection, command)

Prepare the selection but do not perform the selection on the model, let the kernel model handle the selection

Parameters:
  • selection – [QItemSelection or QModelIndex]: The asked selection
  • command – [QItemSelectionModel.SelectionFlag] Select, Deselect or Toggle current selection with asked selection
Returns:

list(QModelIndex) the new selection list