MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / activate

Method activate

gui/builtinContextMenus/implantSetSave.py:29–36  ·  view source on GitHub ↗
(self, callingWindow, fullContext, i)

Source from the content-addressed store, hash-verified

27 return _t('Save as New Implant Set')
28
29 def activate(self, callingWindow, fullContext, i):
30 with NameDialog(self.mainFrame, '') as dlg:
31 if dlg.ShowModal() == wx.ID_OK:
32 name = dlg.input.GetLineText(0).strip()
33 if name == '':
34 return
35 from gui.setEditor import ImplantSetEditor
36 ImplantSetEditor.openOne(parent=self.mainFrame, dataToAdd=(name, self.implants))
37
38
39ImplantSetSave.register()

Callers

nothing calls this directly

Calls 3

NameDialogClass · 0.85
GetLineTextMethod · 0.80
openOneMethod · 0.45

Tested by

no test coverage detected