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

Class BoosterViewDrop

gui/builtinAdditionPanes/boosterView.py:34–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32_t = wx.GetTranslation
33
34class BoosterViewDrop(wx.DropTarget):
35 def __init__(self, dropFn, *args, **kwargs):
36 super(BoosterViewDrop, self).__init__(*args, **kwargs)
37 self.dropFn = dropFn
38 # this is really transferring an EVE itemID
39 self.dropData = wx.TextDataObject()
40 self.SetDataObject(self.dropData)
41
42 def OnData(self, x, y, t):
43 if self.GetData():
44 dragged_data = DragDropHelper.data
45 data = dragged_data.split(':')
46
47 if dragged_data is None:
48 return t
49
50 self.dropFn(x, y, data)
51 return t
52
53
54class BoosterView(d.Display):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected