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

Method GetImageIndex

gui/cachingImageList.py:31–38  ·  view source on GitHub ↗
(self, *loaderArgs)

Source from the content-addressed store, hash-verified

29 self.map = {}
30
31 def GetImageIndex(self, *loaderArgs):
32 id_ = self.map.get(loaderArgs)
33 if id_ is None:
34 bitmap = BitmapLoader.getBitmap(*loaderArgs)
35 if bitmap is None:
36 return -1
37 id_ = self.map[loaderArgs] = wx.ImageList.Add(self, bitmap)
38 return id_

Callers 15

addImageMethod · 0.80
__init__Method · 0.80
getImageIdMethod · 0.80
loadIconFileMethod · 0.80
getImageIdMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
getImageIdMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 2

getMethod · 0.45
getBitmapMethod · 0.45

Tested by

no test coverage detected