Remove some debug code and fixup Layout() calls in statviews

This commit is contained in:
cncfanatics
2010-09-11 14:53:27 +02:00
parent 2bb7abca11
commit 21e4ae2a52
11 changed files with 17 additions and 113 deletions

View File

@@ -37,16 +37,8 @@ class ResistancesViewFull(StatsView):
return width
def populatePanel(self, contentPanel, headerPanel):
contentSizer = contentPanel.GetSizer()
parent = contentPanel
panel = "full"
# Resistances
self.panel = contentPanel
# Custom header EHP
headerContentSizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -66,7 +58,6 @@ class ResistancesViewFull(StatsView):
headerContentSizer.Add( stCls )
# headerContentSizer.Add(wx.StaticLine(headerPanel, wx.ID_ANY), 1, wx.ALIGN_CENTER)
# Display table
col = 0
row = 0
@@ -76,8 +67,6 @@ class ResistancesViewFull(StatsView):
for i in xrange(6):
sizerResistances.AddGrowableCol(i + 1)
# Add an empty label, then the rest.
sizerResistances.Add(wx.StaticText(contentPanel, wx.ID_ANY), wx.GBPosition( row, col ), wx.GBSpan( 1, 1 ))
col+=1
@@ -181,4 +170,6 @@ class ResistancesViewFull(StatsView):
else:
lbl.SetLabel("0.00")
self.panel.Layout()
builtinStatsViews.registerView(ResistancesViewFull)