From b7fe419c702211b464272f65a8582baca83e070b Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 30 Aug 2010 13:46:20 +0300 Subject: [PATCH] Added debug print for gauge timers --- gui/pygauge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/pygauge.py b/gui/pygauge.py index 65c0ef3c1..fdb786507 100644 --- a/gui/pygauge.py +++ b/gui/pygauge.py @@ -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()