Fixed ticket #91

This commit is contained in:
HomeWorld
2010-10-09 11:37:08 +03:00
parent bc0d6d713c
commit 6b8abcd63f
2 changed files with 21 additions and 17 deletions

View File

@@ -115,7 +115,8 @@ class ResourcesViewFull(StatsView):
# Gauges modif. - Darriele
gauge = PG.PyGauge(parent, wx.ID_ANY, 100)
gauge = PG.PyGauge(parent, wx.ID_ANY, 1)
gauge.SetRange(1,True)
gauge.SetMinSize((self.getTextExtentW("1.999M/1.99M MW"), 23))
gauge.SetFractionDigits(2)
@@ -173,7 +174,7 @@ class ResourcesViewFull(StatsView):
gauge = getattr(self, "gauge%s%s" % (panel, capitalizedType))
gauge.SetRange(100)
gauge.SetRange(0.01,True)
gauge.SetValue(0)
i+=1