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

Method getImageId

gui/builtinViewColumns/graphLineStyle.py:39–47  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

37 self.mask = wx.LIST_MASK_TEXT
38
39 def getImageId(self, stuff):
40 if isinstance(stuff, TargetWrapper):
41 try:
42 styleData = STYLES[stuff.lineStyleID]
43 except KeyError:
44 return -1
45 img = self.fittingView.imageList.GetImageIndex(styleData.iconName, 'gui')
46 return img
47 return -1
48
49 def getToolTip(self, stuff):
50 if isinstance(stuff, TargetWrapper):

Callers

nothing calls this directly

Calls 1

GetImageIndexMethod · 0.80

Tested by

no test coverage detected