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

Method getText

gui/builtinViewColumns/projectionRange.py:46–55  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

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'

Callers

nothing calls this directly

Calls 3

formatAmountFunction · 0.90
getProjectionInfoMethod · 0.80
getActiveFitMethod · 0.45

Tested by

no test coverage detected