aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCC <ChCoAlC@gmail.com>2013-08-07 21:07:42 +0800
committerCC <ChCoAlC@gmail.com>2013-08-07 21:07:42 +0800
commitb3681332810709c8b9d6b89bf9c55b4a11777886 (patch)
treeaccba6a0cccead4e1ee08a24841d750740d4a366
parentdc0a833d4200013d7592eb8e7f7296dbd063daf0 (diff)
Fix a type error bug.
-rwxr-xr-xexamples/animation/easing/easing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/animation/easing/easing.py b/examples/animation/easing/easing.py
index cfd3eb5..18cd87d 100755
--- a/examples/animation/easing/easing.py
+++ b/examples/animation/easing/easing.py
@@ -194,17 +194,17 @@ class Window(QtGui.QWidget):
def periodChanged(self, value):
curve = self.m_anim.easingCurve()
- curve.setPeriod(QtCore.QLocale().toFloat(value)[0])
+ curve.setPeriod(value)
self.m_anim.setEasingCurve(curve)
def amplitudeChanged(self, value):
curve = self.m_anim.easingCurve()
- curve.setAmplitude(QtCore.QLocale().toFloat(value)[0])
+ curve.setAmplitude(value)
self.m_anim.setEasingCurve(curve)
def overshootChanged(self, value):
curve = self.m_anim.easingCurve()
- curve.setOvershoot(QtCore.QLocale().toFloat(value)[0])
+ curve.setOvershoot(value)
self.m_anim.setEasingCurve(curve)