The selector module¶
SelectorViewMixin class, to mixin with View.
Adds the capability to select or unselect Pages.
-
class
SelectorViewMixin
(parent=None, **kwds)[source]¶ Bases:
object
SelectorViewMixin class, to mixin with View.
Adds the capability to select or unselect Pages. Pages are numbered from 1.
Instance variables:
userChangeSelectionModeEnabled
= Truewhether the user can change the selectionMode (by longpressing a page to enable selectionMode, and pressing ESC to leave selectionMode. (Be sure to mix in the
qpageview.util.LongMousePressMixin
class when you want to use the long mouse press event.)
-
selectionChanged
¶
-
selectionModeChanged
¶
-
userChangeSelectionModeEnabled
= True¶
-
modifySelection
()[source]¶ Context manager that allows changing the selection.
Yields a set, and on exit of the context, stores the modifications and emits the selectionChanged() signal. Used internally by all other methods.