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

Method getText

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

Source from the content-addressed store, hash-verified

53 self.imageId = fittingView.imageList.GetImageIndex("totalPrice_small", "gui")
54
55 def getText(self, stuff):
56 if stuff.item is None or stuff.item.group.name == "Ship Modifiers":
57 return ""
58
59 if hasattr(stuff, "isEmpty"):
60 if stuff.isEmpty:
61 return ""
62
63 if isinstance(stuff, Module) and stuff.isMutated:
64 return ""
65
66 priceObj = stuff.item.price
67
68 if not priceObj.isValid():
69 return False
70
71 return formatPrice(stuff, priceObj)
72
73 def delayedText(self, mod, display, colItem):
74 sPrice = ServicePrice.getInstance()

Callers

nothing calls this directly

Calls 2

formatPriceFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected