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

Method __init__

gui/display.py:31–47  ·  view source on GitHub ↗
(self, parent, size=wx.DefaultSize, style=0)

Source from the content-addressed store, hash-verified

29 DEFAULT_COLS = None
30
31 def __init__(self, parent, size=wx.DefaultSize, style=0):
32 wx.ListCtrl.__init__(self)
33 self.EnableSystemTheme(False)
34 self.Create(parent, size=size, style=wx.LC_REPORT | style)
35 self.imageList = CachingImageList(16, 16)
36 self.SetImageList(self.imageList, wx.IMAGE_LIST_SMALL)
37 self.activeColumns = []
38 self.columnsMinWidth = []
39 self.Bind(wx.EVT_LIST_COL_END_DRAG, self.resizeChecker)
40 self.Bind(wx.EVT_LIST_COL_BEGIN_DRAG, self.resizeSkip)
41
42 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
43
44 for i, colName in enumerate(self.DEFAULT_COLS):
45 self.insertColumnBySpec(i, colName)
46
47 self.imageListBase = self.imageList.ImageCount
48
49
50 # Override native HitTestSubItem (doesn't work as it should on GTK)

Callers

nothing calls this directly

Calls 3

insertColumnBySpecMethod · 0.95
CachingImageListClass · 0.90
getInstanceMethod · 0.45

Tested by

no test coverage detected