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

Method Do

gui/fitCommands/gui/localModule/swap.py:19–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.position2 = position2
18
19 def Do(self):
20 if self.position1 == self.position2:
21 return False
22 cmd = CalcSwapLocalModuleCommand(fitID=self.fitID, position1=self.position1, position2=self.position2)
23 success = self.internalHistory.submit(cmd)
24 eos.db.commit()
25 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
26 return success
27
28 def Undo(self):
29 success = self.internalHistory.undoAll()

Callers

nothing calls this directly

Calls 3

submitMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected