MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / populatePanel

Method populatePanel

gui/builtinStatsViews/outgoingViewFull.py:72–93  ·  view source on GitHub ↗
(self, contentPanel, headerPanel)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getStaticBitmapMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected