(self, stuff)
| 44 | self.mask = wx.LIST_MASK_IMAGE |
| 45 | |
| 46 | def getText(self, stuff): |
| 47 | if isinstance(stuff, Fit): |
| 48 | fitID = self.mainFrame.getActiveFit() |
| 49 | info = stuff.getProjectionInfo(fitID) |
| 50 | projRange = info.projectionRange |
| 51 | else: |
| 52 | projRange = getattr(stuff, 'projectionRange', None) |
| 53 | if projRange is None: |
| 54 | return '' |
| 55 | return formatAmount(projRange, 3, 0, 3, unitName='m') |
| 56 | |
| 57 | def getToolTip(self, mod): |
| 58 | return 'Projection Range' |
nothing calls this directly
no test coverage detected