stacked_widget¶
Module Contents¶
带淡入淡出动画的层叠组件 |
|
弹出动画信息 |
|
带弹出动画的层叠组件 |
|
- class OpacityAniStackedWidget(parent=None)¶
Bases:
PyQt5.QtWidgets.QStackedWidget带淡入淡出动画的层叠组件
- 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)¶
弹出动画信息
- widget¶
- deltaX¶
- deltaY¶
- ani¶
- class PopUpAniStackedWidget(parent=None)¶
Bases:
PyQt5.QtWidgets.QStackedWidget带弹出动画的层叠组件
- aniFinished¶
- aniStart¶
- aniInfos: List[PopUpAniInfo] = []¶
- isAnimationEnabled = True¶
- addWidget(widget, deltaX=0, deltaY=76)¶
添加小部件
参数¶
- widget:
被添加的小部件
- deltaX: int
动画开始时水平方向的偏移量
- deltaY: int
动画开始时垂直方向的偏移量
- removeWidget(widget: PyQt5.QtWidgets.QWidget)¶
- setAnimationEnabled(isEnabled: bool)¶
set whether the pop animation is enabled
- class TransitionStackedWidget(parent=None)¶
Bases:
PyQt5.QtWidgets.QStackedWidget- aniFinished¶
- aniStart¶
- setAnimationEnabled(isEnabled: bool)¶
set whether the transition animation is enabled
- isAnimationEnabled() bool¶
return whether the transition animation is enabled
- addWidget(w)¶
- insertWidget(index, w)¶
- setCurrentWidget(widget: PyQt5.QtWidgets.QWidget, duration: int = None, isBack: bool = False)¶
set current page widget with transition animation
参数¶
- widget: QWidget
target widget to display
- duration: int
animation duration in milliseconds, None for default
- isBack: bool
whether this is a back navigation
- class EntranceTransitionStackedWidget(parent=None)¶
Bases:
TransitionStackedWidget
- class DrillInTransitionStackedWidget(parent=None)¶
Bases:
TransitionStackedWidget