MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / populatePanel

Method populatePanel

gui/builtinPreferenceViews/dummyView.py:28–46  ·  view source on GitHub ↗
(self, panel)

Source from the content-addressed store, hash-verified

26 title = "Dummy"
27
28 def populatePanel(self, panel):
29 mainSizer = wx.BoxSizer(wx.VERTICAL)
30
31 headerSizer = self.initHeader(panel)
32 mainSizer.Add(headerSizer, 0, wx.EXPAND, 5)
33
34 self.stline1 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
35 mainSizer.Add(self.stline1, 0, wx.EXPAND, 5)
36
37 contentSizer = self.initContent(panel)
38 mainSizer.Add(contentSizer, 1, wx.EXPAND | wx.TOP | wx.BOTTOM | wx.LEFT, 10)
39
40 self.stline2 = wx.StaticLine(panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
41 mainSizer.Add(self.stline2, 0, wx.EXPAND, 5)
42
43 footerSizer = self.initFooter(panel)
44 mainSizer.Add(footerSizer, 0, wx.EXPAND, 5)
45 panel.SetSizer(mainSizer)
46 panel.Layout()
47
48 def refreshPanel(self, fit):
49 pass

Callers

nothing calls this directly

Calls 3

initHeaderMethod · 0.95
initContentMethod · 0.95
initFooterMethod · 0.95

Tested by

no test coverage detected