From 1ae846af0c494e08ec535448fcd1eb0ea6f522e9 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 2 Sep 2010 21:19:23 +0300 Subject: [PATCH 1/2] Dirty little hack in StatsPane:Resources (pg/cpu/calib) to prevent unwanted resize of sizers ^^ --- gui/statsPane.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/statsPane.py b/gui/statsPane.py index 34b6e1678..03e28a6b7 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -282,6 +282,7 @@ class StatsPane(wx.Panel): labelResources = wx.StaticText(parent, wx.ID_ANY, "Resources") labelResources.SetFont(boldFont) sizer = wx.FlexGridSizer(3, 2) + sizer.SetMinSize(wx.Size(75,0)) for i in xrange(3): sizer.AddGrowableCol(i + 1) From 8c461d74c122b6c9331154a6a0d85a392c935322 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 2 Sep 2010 22:18:45 +0300 Subject: [PATCH 2/2] Dirty little hack in StatsPane:Resists:EHP to prevent unwanted resize of sizers EHP StaticText have fixed size(32) ^^ --- gui/statsPane.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 03e28a6b7..675a1100b 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -442,8 +442,7 @@ class StatsPane(wx.Panel): box.Add(wx.StaticText(self.fullPanel, wx.ID_ANY, "%"), 0, wx.ALIGN_CENTER) - lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "") - + lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "", wx.DefaultPosition, wx.Size(32,-1), wx.ALIGN_CENTER) setattr(self, "labelResistance%sEhp" % tankType.capitalize(), lbl) sizerResistances.Add(lbl, 0, wx.ALIGN_CENTER)