From 5bf54b635f480c150b822df8b8cd85dd7276593f Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 21 Oct 2010 12:42:57 +0300 Subject: [PATCH] Little cleanup in pygauge --- gui/pygauge.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/pygauge.py b/gui/pygauge.py index a76e56f97..c4cf37fe2 100644 --- a/gui/pygauge.py +++ b/gui/pygauge.py @@ -309,25 +309,21 @@ class PyGauge(wx.PyWindow): c2 = self.CalculateTransitionColor(c2, (153,185,56),xv) else: if pv <=101: - #163,206,53 , 132,175,22 xv = pv -100 c1 = self.CalculateTransitionColor((122,154,25), (132,175,22), xv) c2 = self.CalculateTransitionColor((153,185,56), (163,206,53), xv) elif pv <= 103: - #223,146,53 , 192,115,22 xv = (pv -101)/2 c1 = self.CalculateTransitionColor((132,175,22), (192,115,22), xv) c2 = self.CalculateTransitionColor((163,206,53), (223,146,53), xv) elif pv <= 105: - #243,86,53 , 212, 55, 22 xv = (pv -103)/2 c1 = self.CalculateTransitionColor((192,115,22), (212,55,22), xv) c2 = self.CalculateTransitionColor((223,146,53), (243,86,53), xv) else: - #243,66,53 , 253,6,4 pv = 106 xv = pv -100