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

Method OnGraphSwitched

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

Source from the content-addressed store, hash-verified

207 view.isEffective = event.effective
208
209 def OnGraphSwitched(self, event):
210 view = self.getView()
211 GraphSettings.getInstance().set('selectedGraph', view.internalName)
212 self.clearCache(reason=GraphCacheCleanupReason.graphSwitched)
213 self.resetXMark()
214 self.ctrlPanel.updateControls()
215 self.draw()
216 event.Skip()
217
218 def OnDrawTimer(self, event):
219 event.Skip()

Callers

nothing calls this directly

Calls 7

getViewMethod · 0.95
clearCacheMethod · 0.95
resetXMarkMethod · 0.95
drawMethod · 0.95
updateControlsMethod · 0.80
setMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected