Added togglepanel->header.layout to all statsview comps in refreshPanel

This commit is contained in:
HomeWorld
2010-10-03 13:42:19 +03:00
parent a45798bd1f
commit 978d1e5835
6 changed files with 14 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ class CapacitorViewFull(StatsView):
def populatePanel(self, contentPanel, headerPanel):
contentSizer = contentPanel.GetSizer()
parent = self.panel = contentPanel
self.headerPanel = headerPanel
panel = "full"
sizerCapacitor = wx.GridSizer(1, 2)
@@ -130,5 +132,6 @@ class CapacitorViewFull(StatsView):
getattr(self, lblNameState % panel).SetLabel(s)
self.panel.Layout()
self.headerPanel.Layout()
builtinStatsViews.registerView(CapacitorViewFull)