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

Method OnGraphOptionChanged

graphs/gui/frame.py:174–186  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

172 self.draw()
173
174 def OnGraphOptionChanged(self, event):
175 event.Skip()
176 layout = getattr(event, 'refreshColumns', False) or getattr(event, 'refreshColumns', False)
177 if layout:
178 self.ctrlPanel.Freeze()
179 if getattr(event, 'refreshAxeLabels', False):
180 self.ctrlPanel.refreshAxeLabels(restoreSelection=True)
181 if getattr(event, 'refreshColumns', False):
182 self.ctrlPanel.refreshColumns()
183 self.Layout()
184 self.ctrlPanel.Thaw()
185 self.clearCache(reason=GraphCacheCleanupReason.optionChanged)
186 self.draw()
187
188 def OnEffectiveHpToggled(self, event):
189 event.Skip()

Callers

nothing calls this directly

Calls 4

clearCacheMethod · 0.95
drawMethod · 0.95
refreshAxeLabelsMethod · 0.80
refreshColumnsMethod · 0.80

Tested by

no test coverage detected