6.147. sibl_gui.ui.views

views.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines the Application views classes.

Others:

6.147.1. Module Attributes

sibl_gui.ui.views.LOGGER

6.147.2. Classes

class sibl_gui.ui.views.Mixin_AbstractView(model=None)[source]

Bases: object

Defines a mixin used to bring common capabilities in Application Views classes.

Initializes the class.

Parameters:model (QObject) – Model.
modelSelection[source]

Property for self.__modelSelection attribute.

Returns:self.__modelSelection.
Return type:dict
setModel(model)[source]

Reimplements the umbra.ui.views.Abstract_QListView.setModel method.

Parameters:model (QObject) – Model to set.
storeModelSelection()[source]

Stores the Model selection.

Returns:Method success.
Return type:bool
restoreModelSelection()[source]

Restores the Model selection.

Returns:Method success.
Return type:bool
class sibl_gui.ui.views.Abstract_QListView(parent=None, model=None, readOnly=False, message=None)[source]

Bases: umbra.ui.views.Abstract_QListView, sibl_gui.ui.views.Mixin_AbstractView

Defines the base class used by others Application Views classes.

Initializes the class.

Parameters:
  • parent (QObject) – Object parent.
  • model (QObject) – Model.
  • readOnly (bool) – View is read only.
  • message (unicode) – View default message when Model is empty.
class sibl_gui.ui.views.Abstract_QTreeView(parent=None, model=None, readOnly=False, message=None)[source]

Bases: umbra.ui.views.Abstract_QTreeView, sibl_gui.ui.views.Mixin_AbstractView

Defines the base class used by others Application Views classes.

Initializes the class.

Parameters:
  • parent (QObject) – Object parent.
  • model (QObject) – Model.
  • readOnly (bool) – View is read only.
  • message (unicode) – View default message when Model is empty.