From 3db1b2c60e88687d0e3be7a7d0fe3110eaadf96d Mon Sep 17 00:00:00 2001 From: CC Date: Wed, 7 Aug 2013 21:22:02 +0800 Subject: Fix a type error --- examples/animation/easing/easing.py | 6 +++--- 1 file 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) -- cgit v1.2.3