Gauges now imitates ballz falling on teh floor

This commit is contained in:
HomeWorld
2010-08-30 18:41:19 +03:00
parent 7c15fa557f
commit 3572ed85b2

View File

@@ -51,7 +51,7 @@ class PyGauge(wx.PyWindow):
self._oldValue = 0
self._timerOn = 0
self._animDuration = 300
self._animDuration = 500
self._animStep = 0
self._period = 25
self._animValue = 0
@@ -308,7 +308,7 @@ class PyGauge(wx.PyWindow):
start = 0
end = oldValue - value
step=self.OUT_QUAD(self._animStep, start, end, self._animDuration)
step=self.OUT_BOUNCE(self._animStep, start, end, self._animDuration)
self._animStep += self._period
if self._timerId == event.GetId():