Added measurement units to pg/cpu/dronebay/dronebandwidth as suggested in 5) ticket #1
This commit is contained in:
@@ -354,6 +354,10 @@ class StatsPane(wx.Panel):
|
|||||||
setattr(self, "label%sTotal%s" % (panel.capitalize(), capitalizedType), lbl)
|
setattr(self, "label%sTotal%s" % (panel.capitalize(), capitalizedType), lbl)
|
||||||
absolute.Add(lbl, 0, wx.ALIGN_LEFT)
|
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
|
# Gauges modif. - Darriele
|
||||||
if self._showNormalGauges == True:
|
if self._showNormalGauges == True:
|
||||||
gauge = wx.Gauge(parent, wx.ID_ANY, 100)
|
gauge = wx.Gauge(parent, wx.ID_ANY, 100)
|
||||||
|
|||||||
Reference in New Issue
Block a user