提交 55068da8 编写于 作者: 之一Yo's avatar 之一Yo

取消 `dataclass` 的使用

上级 b802e2b2
# coding:utf-8 # coding:utf-8
from typing import List from typing import List
from dataclasses import dataclass
from PyQt5.QtCore import (QAbstractAnimation, QEasingCurve, from PyQt5.QtCore import (QAbstractAnimation, QEasingCurve, QPoint, QPropertyAnimation,
QParallelAnimationGroup, QPoint, QPropertyAnimation,
pyqtSignal) pyqtSignal)
from PyQt5.QtWidgets import QGraphicsOpacityEffect, QStackedWidget, QWidget from PyQt5.QtWidgets import QGraphicsOpacityEffect, QStackedWidget, QWidget
...@@ -55,13 +53,14 @@ class OpacityAniStackedWidget(QStackedWidget): ...@@ -55,13 +53,14 @@ class OpacityAniStackedWidget(QStackedWidget):
super().setCurrentIndex(self.__nextIndex) super().setCurrentIndex(self.__nextIndex)
@dataclass
class PopUpAniInfo: class PopUpAniInfo:
""" Pop up ani info """ """ Pop up ani info """
widget: QWidget
deltaX: int def __init__(self, widget: QWidget, deltaX: int, deltaY, ani: QPropertyAnimation):
deltaY: int self.widget = widget
ani: QPropertyAnimation self.deltaX = deltaX
self.deltaY = deltaY
self.ani = ani
class PopUpAniStackedWidget(QStackedWidget): class PopUpAniStackedWidget(QStackedWidget):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册