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

Method activate

gui/builtinContextMenus/shipJump.py:37–41  ·  view source on GitHub ↗
(self, callingWindow, fullContext, i)

Source from the content-addressed store, hash-verified

35 return _t("Open in Fitting Browser")
36
37 def activate(self, callingWindow, fullContext, i):
38 fitID = self.mainFrame.getActiveFit()
39 ship = Fit.getInstance().getFit(fitID).ship
40 self.mainFrame.notebookBrowsers.SetSelection(1)
41 wx.PostEvent(self.mainFrame.shipBrowser, Stage3Selected(shipID=ship.item.ID, back=True))
42
43
44JumpToShip.register()

Callers

nothing calls this directly

Calls 4

getFitMethod · 0.80
SetSelectionMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected