Stacked Widget (stackedwidget)¶
AnimatedStackedWidget¶
A widget similar to QStackedWidget supporting animated
transitions between widgets.
-
class
orangecanvas.gui.stackedwidget.AnimatedStackedWidget(parent=None, animationEnabled=True)¶ Bases:
PyQt4.QtGui.QFrame-
currentChanged(int)¶ Current widget has changed
-
transitionStarted¶ Transition animation has started
-
transitionFinished¶ Transition animation has finished
-
setAnimationEnabled(animationEnabled)¶ Enable/disable transition animations.
-
animationEnabled()¶ Is the transition animation enabled.
-
addWidget(widget)¶ Append the widget to the stack and return its index.
-
insertWidget(index, widget)¶ Insert widget into the stack at index.
-
removeWidget(widget)¶ Remove widget from the stack.
Note
The widget is hidden but is not deleted.
-
widget(index)¶ Return the widget at index
-
indexOf(widget)¶ Return the index of widget in the stack.
-
count()¶ Return the number of widgets in the stack.
-
setCurrentWidget(widget)¶ Set the current shown widget.
-
setCurrentIndex(index)¶ Set the current shown widget index.
-
currentIndex()¶ Return the current shown widget index.
-
-
class
orangecanvas.gui.stackedwidget.StackLayout(parent=None)¶ Bases:
PyQt4.QtGui.QStackedLayoutA stacked layout with
sizeHintalways the same as that of the current widget.