From dd63a31ec98d65ce1aa419227978fb031a12a5e9 Mon Sep 17 00:00:00 2001 From: Irony <892768447@qq.com> Date: Wed, 3 Apr 2019 11:51:33 +0800 Subject: [PATCH] fix _next --- .settings/org.eclipse.core.resources.prefs | 2 ++ QPropertyAnimation/Lib/SlidingStackedWidget.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index b5aaf85..9a48159 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -17,6 +17,7 @@ encoding//Demo/SingleApplication.py=utf-8 encoding//Demo/VerificationCode.py=utf-8 encoding//Demo/WeltHideWindow.py=utf-8 encoding//Demo/WindowNotify.py=utf-8 +encoding//QAxWidget/ViewOffice.py=utf-8 encoding//QChart/LineChart.py=utf-8 encoding//QFont/AwesomeFont.py=utf-8 encoding//QFont/Lib/FontAwesome.py=utf-8 @@ -30,6 +31,7 @@ encoding//QProgressBar/MetroCircleProgress.py=utf-8 encoding//QProgressBar/PercentProgressBar.py=utf-8 encoding//QProgressBar/SimpleStyle.py=utf-8 encoding//QProgressBar/WaterProgressBar.py=utf-8 +encoding//QPropertyAnimation/Lib/SlidingStackedWidget.py=utf-8 encoding//QProxyStyle/Lib/TabBarStyle.py=utf-8 encoding//QProxyStyle/TabTextDirection.py=utf-8 encoding//QPushButton/BottomLineProgress.py=utf-8 diff --git a/QPropertyAnimation/Lib/SlidingStackedWidget.py b/QPropertyAnimation/Lib/SlidingStackedWidget.py index aae37a1..0d35b79 100644 --- a/QPropertyAnimation/Lib/SlidingStackedWidget.py +++ b/QPropertyAnimation/Lib/SlidingStackedWidget.py @@ -119,7 +119,7 @@ class SlidingStackedWidget(QStackedWidget): self._active = 1 _now = self.currentIndex() _next = self.indexOf(widget) - if _now == next: + if _now == _next: self._active = 0 return