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

Method __init__

gui/builtinAdditionPanes/projectedView.py:85–99  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

83 'Projection Range']
84
85 def __init__(self, parent):
86 d.Display.__init__(self, parent, style=wx.BORDER_NONE)
87
88 self.lastFitId = None
89
90 self.mainFrame.Bind(GE.FIT_CHANGED, self.fitChanged)
91 self.mainFrame.Bind(GE.FIT_REMOVED, self.OnFitRemoved)
92 self.Bind(wx.EVT_LEFT_DOWN, self.click)
93 self.Bind(wx.EVT_RIGHT_DOWN, self.click)
94 self.Bind(wx.EVT_LEFT_DCLICK, self.onLeftDoubleClick)
95 self.Bind(wx.EVT_KEY_UP, self.kbEvent)
96
97 self.Bind(wx.EVT_CONTEXT_MENU, self.spawnMenu)
98
99 self.SetDropTarget(ProjectedViewDrop(self.handleListDrag))
100
101 def OnFitRemoved(self, event):
102 event.Skip()

Callers

nothing calls this directly

Calls 2

ProjectedViewDropClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected