MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / FittingViewDrop

Class FittingViewDrop

gui/builtinViews/fittingView.py:118–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117# Drag'n'drop handler
118class FittingViewDrop(wx.DropTarget):
119 def __init__(self, dropFn, *args, **kwargs):
120 super(FittingViewDrop, self).__init__(*args, **kwargs)
121 self.dropFn = dropFn
122 # this is really transferring an EVE itemID
123 self.dropData = wx.TextDataObject()
124 self.SetDataObject(self.dropData)
125
126 def OnData(self, x, y, t):
127 if self.GetData():
128 dragged_data = DragDropHelper.data
129 # pyfalog.debug("fittingView: recieved drag: " + self.dropData.GetText())
130
131 if dragged_data is None:
132 return t
133
134 data = dragged_data.split(':')
135 self.dropFn(x, y, data)
136 return t
137
138
139class FittingView(d.Display):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected