aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2013-08-07 08:37:34 -0700
committerRoman Lacko <backup.rlacko@gmail.com>2013-08-07 08:37:34 -0700
commitac9d80b71db7b2e21aa5630b3b460f9bd6d0dfca (patch)
treeaccba6a0cccead4e1ee08a24841d750740d4a366
parentdf4f44b6aeb08f27da270392f5d9dc2e2f28e3a1 (diff)
parentb3681332810709c8b9d6b89bf9c55b4a11777886 (diff)
Merge pull request #11 from alal/master
Fix a old bug.
-rwxr-xr-xexamples/animation/easing/easing.py6
-rwxr-xr-xexamples/phonon/capabilities.py2
2 files changed, 4 insertions, 4 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)
diff --git a/examples/phonon/capabilities.py b/examples/phonon/capabilities.py
index 790d59c..ce5bcd1 100755
--- a/examples/phonon/capabilities.py
+++ b/examples/phonon/capabilities.py
@@ -38,7 +38,7 @@ except ImportError:
class Window(QtGui.QWidget):
def __init__(self):
- super(QtGui.QWidget, self).__init__()
+ super(Window, self).__init__()
self.setupUi()
self.updateWidgets()