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

Method __init__

gui/builtinViews/emptyView.py:9–18  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

7
8class BlankPage(wx.Panel):
9 def __init__(self, parent):
10 wx.Panel.__init__(self, parent, size=(0, 0))
11
12 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
13 self.parent = parent
14
15 self.parent.Bind(EVT_NOTEBOOK_PAGE_CHANGED, self.pageChanged)
16 self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW))
17
18 wx.PostEvent(self.mainFrame, GE.FitChanged(fitIDs=()))
19
20 def Destroy(self):
21 # todo: This unbind caused fits to not recalc when switching to their tabs; find out why

Callers

nothing calls this directly

Calls 2

SetBackgroundColourMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected