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

Class ProjectedViewDrop

gui/builtinAdditionPanes/projectedView.py:57–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57class ProjectedViewDrop(wx.DropTarget):
58 def __init__(self, dropFn, *args, **kwargs):
59 super(ProjectedViewDrop, self).__init__(*args, **kwargs)
60 self.dropFn = dropFn
61 # this is really transferring an EVE itemID
62 self.dropData = wx.TextDataObject()
63 self.SetDataObject(self.dropData)
64
65 def OnData(self, x, y, t):
66 if self.GetData():
67 dragged_data = DragDropHelper.data
68
69 if dragged_data is None:
70 return t
71
72 data = dragged_data.split(':')
73 self.dropFn(x, y, data)
74 return t
75
76
77class ProjectedView(d.Display):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected