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

Class CommandViewDrop

gui/builtinAdditionPanes/commandView.py:48–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected