From d6d3b3f3f49ab83641a0f82ae328e5809fe23795 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Fri, 20 Aug 2010 13:02:41 +0200 Subject: [PATCH] Change some label texts --- gui/statsPane.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index fed52c2f3..f9cadb88f 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -224,11 +224,10 @@ class StatsPane(wx.Panel): self.sizerBase.Add(sizerFirepower, 0, wx.EXPAND | wx.LEFT, 3) - for damageType in ("turret", "drone"): + for damageType, image in (("weapon", "turret") , ("drone", "droneBay")): baseBox = wx.BoxSizer(wx.HORIZONTAL) sizerFirepower.Add(baseBox, 0, wx.ALIGN_CENTER) - image = "droneBay" if damageType == "drone" else damageType baseBox.Add(bitmapLoader.getStaticBitmap("%s_big" % image, self, "icons"), 0, wx.ALIGN_CENTER) box = wx.BoxSizer(wx.VERTICAL) @@ -295,7 +294,7 @@ class StatsPane(wx.Panel): hbox.Add(wx.StaticText(self, wx.ID_ANY, "Capacity: "), 0, wx.ALIGN_CENTER) self.labelCapacitorCapacity = wx.StaticText(self, wx.ID_ANY, "0.0") hbox.Add(self.labelCapacitorCapacity, 0, wx.ALIGN_CENTER) - hbox.Add(wx.StaticText(self, wx.ID_ANY, " Gj"), 0, wx.ALIGN_CENTER) + hbox.Add(wx.StaticText(self, wx.ID_ANY, " GJ"), 0, wx.ALIGN_CENTER) hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 1, wx.ALIGN_LEFT) @@ -320,13 +319,13 @@ class StatsPane(wx.Panel): chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, "+ "), 0, wx.ALIGN_CENTER) self.labelCapacitorRecharge = wx.StaticText(self, wx.ID_ANY, "0.0") chargeSizer.Add(self.labelCapacitorRecharge, 0, wx.ALIGN_CENTER) - chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, " Gj/s"), 0, wx.ALIGN_CENTER) + chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, " GJ/s"), 0, wx.ALIGN_CENTER) # Discharge chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, "- "), 0, wx.ALIGN_CENTER) self.labelCapacitorDischarge = wx.StaticText(self, wx.ID_ANY, "0.0") chargeSizer.Add(self.labelCapacitorDischarge, 0, wx.ALIGN_CENTER) - chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, " Gj/s"), 0, wx.ALIGN_CENTER) + chargeSizer.Add(wx.StaticText(self, wx.ID_ANY, " GJ/s"), 0, wx.ALIGN_CENTER) # Targeting & Misc grid = wx.GridSizer(1, 2)