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

Method handleMode

gui/builtinContextMenus/resistMode.py:60–68  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

58 return sub
59
60 def handleMode(self, event):
61 optionLabel = self.optionIds[event.Id]
62 optionValue = optionMap[optionLabel]
63 changedFitIDs = set()
64 for wrapper in self.selection:
65 if wrapper.isFit and wrapper.resistMode != optionValue:
66 wrapper.resistMode = optionValue
67 changedFitIDs.add(wrapper.item.ID)
68 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), ResistModeChanged(fitIDs=changedFitIDs))
69
70
71TargetWrapperResists.register()

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected