Stacked Widget (stackedwidget)

AnimatedStackedWidget

A widget similar to QStackedWidget supporting animated transitions between widgets.

class orangecanvas.gui.stackedwidget.AnimatedStackedWidget(parent=None, animationEnabled=True)[source]

Bases: PyQt5.QtWidgets.QFrame

currentChanged(int)

Current widget has changed

transitionStarted

Transition animation has started

transitionFinished

Transition animation has finished

setAnimationEnabled(animationEnabled)[source]

Enable/disable transition animations.

animationEnabled()[source]

Is the transition animation enabled.

addWidget(widget)[source]

Append the widget to the stack and return its index.

insertWidget(index, widget)[source]

Insert widget into the stack at index.

removeWidget(widget)[source]

Remove widget from the stack.

Note

The widget is hidden but is not deleted.

widget(index)[source]

Return the widget at index

indexOf(widget)[source]

Return the index of widget in the stack.

count()[source]

Return the number of widgets in the stack.

setCurrentWidget(widget)[source]

Set the current shown widget.

setCurrentIndex(index)[source]

Set the current shown widget index.

currentIndex()[source]

Return the current shown widget index.

sizeHint(self) QSize[source]
class orangecanvas.gui.stackedwidget.StackLayout(parent=None, **kwargs)[source]

Bases: PyQt5.QtWidgets.QStackedLayout

A stacked layout with sizeHint always the same as that of the current widget.

sizeHint(self) QSize[source]
minimumSize(self) QSize[source]
maximumSize(self) QSize[source]
hasHeightForWidth(self) bool[source]
heightForWidth(self, int) int[source]
geometry(self) QRect[source]
setGeometry(self, QRect)[source]
addWidget(self, QWidget) int[source]