| 55 | |
| 56 | |
| 57 | class 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 | |
| 77 | class ProjectedView(d.Display): |