(self, event)
| 115 | fitID=fitID, itemID=int(data[1]), amount=1)) |
| 116 | |
| 117 | def startDrag(self, event): |
| 118 | row = event.GetIndex() |
| 119 | |
| 120 | if row != -1: |
| 121 | data = wx.TextDataObject() |
| 122 | try: |
| 123 | dataStr = "cargo:{}".format(self.cargo[row].itemID) |
| 124 | except IndexError: |
| 125 | return |
| 126 | data.SetText(dataStr) |
| 127 | |
| 128 | self.unselectAll() |
| 129 | self.Select(row, True) |
| 130 | |
| 131 | dropSource = wx.DropSource(self) |
| 132 | dropSource.SetData(data) |
| 133 | DragDropHelper.data = dataStr |
| 134 | dropSource.DoDragDrop() |
| 135 | |
| 136 | def kbEvent(self, event): |
| 137 | keycode = event.GetKeyCode() |
nothing calls this directly
no test coverage detected