Base Widgets¶
UI4.Widgets.BaseWidgets
Module defining the BaseWidget
and BaseFrame
classes,
base classes for widgets to provide handling of keyboard shortcuts for
themselves and their child widgets.
UI4.Widgets.BaseWidgets.BaseWidget¶
-
class
UI4.Widgets.BaseWidgets.
BaseWidget
¶ Bases:
UI4.App.KeyboardShortcutManager.KeyboardShortcutManagerMixin.KeyboardShortcutManagerMixin
,PyQt4.QtGui.QWidget
Base class for classes that are normally derived from
QtGui.QWidget
, which is also derived fromKeyboardShortcutManagerMixin
to provide handling of keyboard shortcuts for instances of this class including their child widgets.-
__init__
(parent, flags=0)¶ Initializes an instance of the class.
Calls the base class initializers, and sets the focus policy of the widget to accept focus by clicking.
Parameters: - parent (
QtGui.QWidget
orNone
) – The parent widget to own the new instance. Passed verbatim to theQtGui.QWidget
base class initializer. - flags (
QtCore.Qt.WindowFlags
) – The window flags to use in case no parent is given. Passed wrapped inQtCore.Qt.WindowFlags()
to theQtGui.QFrame
base class initializer.
- parent (
-
__module__
= 'UI4.Widgets.BaseWidgets'¶
-
UI4.Widgets.BaseWidgets.BaseFrame¶
-
class
UI4.Widgets.BaseWidgets.
BaseFrame
¶ Bases:
UI4.App.KeyboardShortcutManager.KeyboardShortcutManagerMixin.KeyboardShortcutManagerMixin
,PyQt4.QtGui.QFrame
Base class for classes that are normally derived from
QtGui.QFrame
, which is also derived fromKeyboardShortcutManagerMixin
to provide handling of keyboard shortcuts for instances of this class including their child widgets.-
__init__
(parent, flags=0)¶ Initializes an instance of the class.
Calls the base class initializers, and sets the focus policy of the frame to accept focus by clicking.
Parameters: - parent (
QtGui.QWidget
orNone
) – The parent widget to own the new instance. Passed verbatim to theQtGui.QFrame
base class initializer. - flags (
QtCore.Qt.WindowFlags
) – The window flags to use in case no parent is given. Passed wrapped inQtCore.Qt.WindowFlags()
to theQtGui.QFrame
base class initializer.
- parent (
-
__module__
= 'UI4.Widgets.BaseWidgets'¶
-
UI4.Widgets.BaseNodeGraphLayerStack¶
-
class
UI4.Widgets.
BaseNodeGraphLayerStack
¶ Bases:
QT4GLLayerStack-v0.LayerStack.LayerStack
Class implementing basic functionality that is common to Node Graph tab-like widgets.
-
__module__
= 'UI4.Widgets.BaseNodeGraphLayerStack'¶
-
frameNodes
(nodes, zoom=True)¶ Animates changes in this layer stack’s eye point in order to pan the view so that the given nodes are shown in the center of the view.
Parameters: - nodes (
list
ofNodegraphAPI.Node
) – The nodes to center in the view through animated panning. - zoom (
bool
) – Flag that controls whether to zoom the view.
- nodes (
-