(self, contentPanel, headerPanel)
| 70 | return width |
| 71 | |
| 72 | def populatePanel(self, contentPanel, headerPanel): |
| 73 | contentSizer = contentPanel.GetSizer() |
| 74 | parent = self.panel = contentPanel |
| 75 | self.headerPanel = headerPanel |
| 76 | |
| 77 | sizerOutgoing = wx.GridSizer(1, 4, 0, 0) |
| 78 | |
| 79 | contentSizer.Add(sizerOutgoing, 0, wx.EXPAND, 0) |
| 80 | |
| 81 | for labelName, labelDesc, valueFormat, image, tooltip, val, preSpoolVal, fullSpoolVal, prec, lowest, highest in stats: |
| 82 | baseBox = wx.BoxSizer(wx.VERTICAL) |
| 83 | |
| 84 | baseBox.Add(BitmapLoader.getStaticBitmap("%s_big" % image, parent, "gui"), 0, wx.ALIGN_CENTER) |
| 85 | |
| 86 | lbl = wx.StaticText(parent, wx.ID_ANY, valueFormat.format(0, "")) |
| 87 | lbl.SetToolTip(wx.ToolTip(tooltip)) |
| 88 | setattr(self, labelName, lbl) |
| 89 | |
| 90 | baseBox.Add(lbl, 0, wx.ALIGN_CENTER) |
| 91 | self._cachedValues.append(0) |
| 92 | |
| 93 | sizerOutgoing.Add(baseBox, 1, wx.ALIGN_LEFT) |
| 94 | |
| 95 | def refreshPanel(self, fit): |
| 96 |
nothing calls this directly
no test coverage detected