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

Method fitChanged

gui/builtinViews/fittingView.py:615–633  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

613 self.populate(self.mods)
614
615 def fitChanged(self, event):
616 event.Skip()
617 if not self:
618 return
619 activeFitID = self.mainFrame.getActiveFit()
620 if activeFitID is not None and activeFitID not in event.fitIDs:
621 return
622 try:
623 if self.activeFitID is not None and self.activeFitID == activeFitID:
624 self.generateMods()
625 if self.GetItemCount() != len(self.mods):
626 # This only happens when turning on/off slot divisions
627 self.populate(self.mods)
628 self.refresh(self.mods)
629 self.Refresh()
630
631 self.Show(self.activeFitID is not None and self.activeFitID == activeFitID)
632 except RuntimeError:
633 pyfalog.error("Caught dead object")
634
635 def spawnMenu(self, event):
636 clickedPos = self.getRowByAbs(event.Position)

Callers

nothing calls this directly

Calls 6

generateModsMethod · 0.95
refreshMethod · 0.95
getActiveFitMethod · 0.45
populateMethod · 0.45
RefreshMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected