Base Widgets¶
UI4.Widgets.BaseWidgets
Module defining the BaseMainWindow, BaseWidget, and BaseFrame classes,
base classes for widgets and windows to provide handling of keyboard shortcuts
for themselves and their child widgets.
UI4.Widgets.BaseWidgets.BaseWidget¶
- class UI4.Widgets.BaseWidgets.BaseWidget¶
Bases:
QWidget,KeyboardShortcutManagerMixinBase class for classes that are normally derived from
QtWidgets.QWidget, which is also derived fromUI4.App.KeyboardShortcutManager.KeyboardShortcutManagerMixin.KeyboardShortcutManagerMixinto provide handling of keyboard shortcuts for instances of this class including their child widgets.
UI4.Widgets.BaseWidgets.BaseFrame¶
- class UI4.Widgets.BaseWidgets.BaseFrame¶
Bases:
QFrame,KeyboardShortcutManagerMixinBase class for classes that are normally derived from
QtWidgets.QFrame, which is also derived fromUI4.App.KeyboardShortcutManager.KeyboardShortcutManagerMixin.KeyboardShortcutManagerMixinto provide handling of keyboard shortcuts for instances of this class including their child widgets.
UI4.Widgets.BaseNodeGraphLayerStack¶
- class UI4.Widgets.BaseNodeGraphLayerStack¶
Bases:
LayerStackClass implementing basic functionality that is common to Node Graph tab-like widgets.
Supports alternative background colors if this widget’s parent implements
_getAltBackgroundColorMap(self) -> DrawingModule.nodeWorld_AltBackgroundColorMap.- 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 (
listofNodegraphAPI.Node) – The nodes to center in the view through animated panning.zoom (
bool) – Flag that controls whether to zoom the view.
- frameNodesOnBounds(zoom, bounds, scales)¶
Animates this layer stack’s eye point in order to view the provided bounds
- Parameters:
zoom (
bool) – Flag that controls whether to zoom the view.bounds (
listoffloat) – The bounds to center the view on.scales (
listoffloat) – the relative & absolute scales and the x & y offsets to be applied to this framing operation.