aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCC <ChCoAlC@gmail.com>2013-08-07 21:22:02 +0800
committerCC <ChCoAlC@gmail.com>2013-08-07 21:22:02 +0800
commit3db1b2c60e88687d0e3be7a7d0fe3110eaadf96d (patch)
tree7f87dac78731287f095af55a53979bd8657f8cf7
parentdf4f44b6aeb08f27da270392f5d9dc2e2f28e3a1 (diff)
Fix a type error
-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)