(self)
| 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 |
nothing calls this directly
no test coverage detected