From 84b06630c84c0e4d50550b34afd8e6ce5e0cf040 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 2 Sep 2010 02:37:51 +0300 Subject: [PATCH 1/2] Revert "Aligning turrets/missiles/calibration values to left as suggested in 3) ticket #1" This reverts commit 31c59494c310a946ce0691bd0ca3c85e57fdc4f4. --- gui/statsPane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 83f4e2b32..7604fc0bf 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -302,7 +302,7 @@ class StatsPane(wx.Panel): box = wx.BoxSizer(wx.HORIZONTAL) sizer.Add(bitmap, 0, wx.ALIGN_CENTER) - sizer.Add(box, 0, wx.ALIGN_LEFT) + sizer.Add(box, 0, wx.ALIGN_CENTER) suffix = "Points" if type == "calibration" else "Hardpoints" lbl = wx.StaticText(parent, wx.ID_ANY, "0") From b2b1e278726b09c54cab642dfab900fca6fc6541 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 2 Sep 2010 19:00:53 +0300 Subject: [PATCH 2/2] A little waxing job applied to StatsPane:Resources (pg/cpu/drone.. icons now are on the same line (align_bottom) with their coresponding gauges; gauges size increased to approx. the same size of icons) --- gui/statsPane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 7604fc0bf..34b6e1678 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -338,7 +338,7 @@ class StatsPane(wx.Panel): b = wx.BoxSizer(wx.HORIZONTAL) main.Add(b, 1, wx.ALIGN_CENTER) - b.Add(bitmap, 0, wx.ALIGN_CENTER) + b.Add(bitmap, 0, wx.ALIGN_BOTTOM) b.Add(stats, 1, wx.EXPAND) else: @@ -364,7 +364,7 @@ class StatsPane(wx.Panel): gauge.SetMinSize((80, 20)) else: gauge = PG.PyGauge(parent, wx.ID_ANY, 100) - gauge.SetMinSize((80, 16)) + gauge.SetMinSize((80, 23)) gauge.SetSkipDigitsFlag(True) setattr(self, "gauge%s%s" % (panel.capitalize(),capitalizedType), gauge)