From 97ae57537156fef92039a70f06dd30dd631baf35 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Wed, 1 Sep 2010 19:05:30 +0300 Subject: [PATCH] Added measurement units to pg/cpu/dronebay/dronebandwidth as suggested in 5) ticket #1 --- gui/statsPane.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/statsPane.py b/gui/statsPane.py index 35dbd0f9d..7604fc0bf 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -354,6 +354,10 @@ class StatsPane(wx.Panel): setattr(self, "label%sTotal%s" % (panel.capitalize(), capitalizedType), lbl) absolute.Add(lbl, 0, wx.ALIGN_LEFT) + units = {"cpu":" tf", "pg":" GJ", "droneBandwidth":" mbit/s", "droneBay":u" m\u00B3"} + lbl = wx.StaticText(parent, wx.ID_ANY, "%s" % units[type]) + absolute.Add(lbl, 0, wx.ALIGN_LEFT) + # Gauges modif. - Darriele if self._showNormalGauges == True: gauge = wx.Gauge(parent, wx.ID_ANY, 100)