Added debug print for gauge timers

This commit is contained in:
HomeWorld
2010-08-30 13:46:20 +03:00
parent 305611e47a
commit b7fe419c70

View File

@@ -222,9 +222,10 @@ class PyGauge(wx.PyWindow):
if not self._timer:
self._timer = wx.Timer(self, self._timerId)
print "Timer created: %d" % self._timerId
self._animStep = 0
self._timer.Start(self._animStep)
print "Timer started: %d" % self._timerId
for v in self._value:
if v < 0 or v > self._range:
raise Exception("ERROR:\n Gauge value must be between 0 and it's range. ")
@@ -353,6 +354,7 @@ class PyGauge(wx.PyWindow):
if stop_timer:
self._timer.Stop()
print "Timer stopped: %d" % self._timerId
self._timerOn=0
self.SortForDisplay()