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

Method handleDrag

gui/builtinAdditionPanes/commandView.py:120–125  ·  view source on GitHub ↗
(self, type, fitID)

Source from the content-addressed store, hash-verified

118 event.Skip()
119
120 def handleDrag(self, type, fitID):
121 # Those are drags coming from pyfa sources, NOT builtin wx drags
122 if type == "fit":
123 activeFit = self.mainFrame.getActiveFit()
124 if activeFit:
125 self.mainFrame.command.Submit(cmd.GuiAddCommandFitsCommand(fitID=activeFit, commandFitIDs=[fitID]))
126
127 @staticmethod
128 def fitSort(fit):

Callers

nothing calls this directly

Calls 1

getActiveFitMethod · 0.45

Tested by

no test coverage detected