Fixed a stupid bug(fail) in pygauge onpaint event that made the animation color changes not behave like intended

This commit is contained in:
HomeWorld
2010-10-10 19:38:21 +03:00
parent bcad51e1cb
commit a82f465fa0

View File

@@ -289,7 +289,7 @@ class PyGauge(wx.PyWindow):
r.width = w
r.height = r.height/2+1
pv = self._percentage
pv = value
if pv <= 100:
c1 = map(lambda t: sum(t), zip(c1, (0,pv/3,-pv,0)))