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

Method __init__

gui/builtinAdditionPanes/commandView.py:72–88  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

70 DEFAULT_COLS = ["State", "Base Name"]
71
72 def __init__(self, parent):
73 d.Display.__init__(self, parent, style=wx.BORDER_NONE)
74
75 self.lastFitId = None
76
77 self.mainFrame.Bind(GE.FIT_CHANGED, AddCommandFit.fitChanged)
78 self.mainFrame.Bind(GE.FIT_REMOVED, self.OnFitRemoved)
79 self.mainFrame.Bind(GE.FIT_CHANGED, self.fitChanged)
80 self.Bind(wx.EVT_LEFT_DOWN, self.click)
81 self.Bind(wx.EVT_LEFT_DCLICK, self.onLeftDoubleClick)
82 self.Bind(wx.EVT_KEY_UP, self.kbEvent)
83
84 self.droneView = gui.builtinAdditionPanes.droneView.DroneView
85
86 self.Bind(wx.EVT_CONTEXT_MENU, self.spawnMenu)
87
88 self.SetDropTarget(CommandViewDrop(self.handleListDrag))
89
90 def OnFitRemoved(self, event):
91 event.Skip()

Callers

nothing calls this directly

Calls 2

CommandViewDropClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected