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

Method changeMutatedValue

gui/builtinItemStatsViews/itemMutator.py:190–207  ·  view source on GitHub ↗
(self, evt)

Source from the content-addressed store, hash-verified

188 return mutator.attribute.unit.PreformatValue(value)
189
190 def changeMutatedValue(self, evt):
191 if evt.AffectsModifiedFlag:
192 self.isModified = True
193 m = self.event_mapping[evt.Object]
194 value = evt.Value
195 value = self._complicateValue(m, value)
196 sFit = Fit.getInstance()
197
198 sFit.changeMutatedValuePrelim(m, value)
199 if self.timer:
200 self.timer.Stop()
201 self.timer = None
202
203 for x in self.Parent.Parent.Children:
204 if isinstance(x, ItemParams):
205 x.RefreshValues(None)
206 break
207 self.timer = wx.CallLater(1000, self.callLater)
208
209 def resetMutatedValues(self, evt):
210 self.isModified = True

Callers

nothing calls this directly

Calls 5

_complicateValueMethod · 0.95
StopMethod · 0.80
getInstanceMethod · 0.45
RefreshValuesMethod · 0.45

Tested by

no test coverage detected