stacked_widget

Module Contents

OpacityAniStackedWidget

Stacked widget with fade in and fade out animation

PopUpAniInfo

Pop up ani info

PopUpAniStackedWidget

Stacked widget with pop up animation

class OpacityAniStackedWidget(parent=None)

Bases: PyQt5.QtWidgets.QStackedWidget

Stacked widget with fade in and fade out animation

addWidget(w: PyQt5.QtWidgets.QWidget)
setCurrentIndex(index: int)
setCurrentWidget(w: PyQt5.QtWidgets.QWidget)
class PopUpAniInfo(widget: PyQt5.QtWidgets.QWidget, deltaX: int, deltaY, ani: PyQt5.QtCore.QPropertyAnimation)

Pop up ani info

class PopUpAniStackedWidget(parent=None)

Bases: PyQt5.QtWidgets.QStackedWidget

Stacked widget with pop up animation

aniFinished
aniStart
addWidget(widget, deltaX=0, deltaY=76)

add widget to window

Parameters

widget:

widget to be added

deltaX: int

the x-axis offset from the beginning to the end of animation

deltaY: int

the y-axis offset from the beginning to the end of animation

removeWidget(widget: PyQt5.QtWidgets.QWidget)
setCurrentIndex(index: int, needPopOut: bool = False, showNextWidgetDirectly: bool = True, duration: int = 250, easingCurve=QEasingCurve.OutQuad)

set current window to display

Parameters

index: int

the index of widget to display

isNeedPopOut: bool

need pop up animation or not

showNextWidgetDirectly: bool

whether to show next widget directly when animation started

duration: int

animation duration

easingCurve: QEasingCurve

the interpolation mode of animation

setCurrentWidget(widget, needPopOut: bool = False, showNextWidgetDirectly: bool = True, duration: int = 250, easingCurve=QEasingCurve.OutQuad)

set currect widget

Parameters

widget:

the widget to be displayed

isNeedPopOut: bool

need pop up animation or not

showNextWidgetDirectly: bool

whether to show next widget directly when animation started

duration: int

animation duration

easingCurve: QEasingCurve

the interpolation mode of animation