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

Method getTabExtraText

gui/builtinAdditionPanes/notesView.py:74–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 wx.PostEvent(self.mainFrame, GE.FitNotesChanged())
73
74 def getTabExtraText(self):
75 fitID = self.mainFrame.getActiveFit()
76 if fitID is None:
77 return None
78 sFit = Fit.getInstance()
79 fit = sFit.getFit(fitID)
80 if fit is None:
81 return None
82 opt = sFit.serviceFittingOptions["additionsLabels"]
83 # Amount of active implants
84 if opt in (1, 2):
85 amount = len(self.editNotes.GetValue())
86 return ' ({})'.format(formatAmount(amount, 2, 0, 3)) if amount else None
87 else:
88 return None

Callers

nothing calls this directly

Calls 5

formatAmountFunction · 0.90
getFitMethod · 0.80
getActiveFitMethod · 0.45
getInstanceMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected