Handles dragging of items from various pyfa displays which support it data is list with two indices: data[0] is hard-coded str of originating source data[1] is typeID or index of data we want to manipulate
(self, x, y, data)
| 79 | self.Bind(wx.EVT_CONTEXT_MENU, self.spawnMenu) |
| 80 | |
| 81 | def handleListDrag(self, x, y, data): |
| 82 | """ |
| 83 | Handles dragging of items from various pyfa displays which support it |
| 84 | |
| 85 | data is list with two indices: |
| 86 | data[0] is hard-coded str of originating source |
| 87 | data[1] is typeID or index of data we want to manipulate |
| 88 | """ |
| 89 | |
| 90 | if data[0] == "market": |
| 91 | wx.PostEvent(self.mainFrame, ItemSelected(itemID=int(data[1]))) |
| 92 | |
| 93 | def kbEvent(self, event): |
| 94 | keycode = event.GetKeyCode() |
nothing calls this directly
no outgoing calls
no test coverage detected