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

Class FighterViewDrop

gui/builtinAdditionPanes/fighterView.py:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44class FighterViewDrop(wx.DropTarget):
45 def __init__(self, dropFn, *args, **kwargs):
46 super(FighterViewDrop, self).__init__(*args, **kwargs)
47 self.dropFn = dropFn
48 # this is really transferring an EVE itemID
49 self.dropData = wx.TextDataObject()
50 self.SetDataObject(self.dropData)
51
52 def OnData(self, x, y, t):
53 if self.GetData():
54 dragged_data = DragDropHelper.data
55
56 if dragged_data is None:
57 return t
58
59 data = dragged_data.split(':')
60 self.dropFn(x, y, data)
61 return t
62
63
64class FighterView(wx.Panel):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected