diff --git a/examples/Gallery for siui/components/page_homepage/page_homepage.py b/examples/Gallery for siui/components/page_homepage/page_homepage.py index 6f19c42..d6423ac 100644 --- a/examples/Gallery for siui/components/page_homepage/page_homepage.py +++ b/examples/Gallery for siui/components/page_homepage/page_homepage.py @@ -95,7 +95,7 @@ def __init__(self, *args, **kwargs): # 添加到滚动区域容器 self.scroll_container.addWidget(self.head_area) - SiQuickEffect.applyDropShadowOn(self.container_for_cards, color=(0, 0, 0, 80), blur_radius=48) + # SiQuickEffect.applyDropShadowOn(self.container_for_cards, color=(0, 0, 0, 80), blur_radius=48) # 下方区域标签 self.body_area = SiLabel(self) diff --git a/siui/core/animation.py b/siui/core/animation.py index 7e4f63a..0394a77 100644 --- a/siui/core/animation.py +++ b/siui/core/animation.py @@ -1,5 +1,5 @@ import numpy -from PyQt5.QtCore import QObject, QTimer, pyqtSignal +from PyQt5.QtCore import QObject, Qt, QTimer, pyqtSignal global_fps = 60 @@ -25,10 +25,13 @@ def __init__(self, parent=None): self.timer = QTimer() self.timer.setInterval(int(1000/global_fps)) self.timer.timeout.connect(self._process) # 每经历 interval 时间,传入函数就被触发一次 + # self.timer.setTimerType(Qt.PreciseTimer) # 构建行为计时器 self.action_timer = QTimer() self.action_timer.setSingleShot(True) + # self.action_timer.setTimerType(Qt.PreciseTimer) + def setEnable(self, on): self.enabled = on