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

Method addImage

gui/builtinMarketBrowser/marketTree.py:46–49  ·  view source on GitHub ↗
(self, iconFile, location="icons")

Source from the content-addressed store, hash-verified

44 self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnCollapsed)
45
46 def addImage(self, iconFile, location="icons"):
47 if iconFile is None:
48 return -1
49 return self.imageList.GetImageIndex(iconFile, location)
50
51 def expandLookup(self, event):
52 """Process market tree expands"""

Callers 2

__init__Method · 0.95
expandLookupMethod · 0.95

Calls 1

GetImageIndexMethod · 0.80

Tested by

no test coverage detected