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

Method __init__

gui/builtinViewColumns/misc.py:38–54  ·  view source on GitHub ↗
(self, fittingView, params=None)

Source from the content-addressed store, hash-verified

36 name = "Miscellanea"
37
38 def __init__(self, fittingView, params=None):
39 if params is None:
40 params = {"showIcon": True, "displayName": False}
41
42 ViewColumn.__init__(self, fittingView)
43 if params["showIcon"]:
44 self.imageId = fittingView.imageList.GetImageIndex("column_misc", "gui")
45 self.bitmap = BitmapLoader.getBitmap("column_misc", "gui")
46 self.mask = wx.LIST_MASK_IMAGE
47 else:
48 self.imageId = -1
49
50 if params["displayName"] or self.imageId == -1:
51 self.columnText = _("Misc data")
52 self.mask |= wx.LIST_MASK_TEXT
53 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
54 self.fittingView = fittingView
55
56 def getText(self, stuff):
57 return self.__getData(stuff)[0]

Callers

nothing calls this directly

Calls 3

GetImageIndexMethod · 0.80
getBitmapMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected