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

Method handleListDrag

gui/builtinAdditionPanes/boosterView.py:81–91  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected