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

Method addColumn

gui/display.py:90–103  ·  view source on GitHub ↗
(self, i, col)

Source from the content-addressed store, hash-verified

88
89 # noinspection PyPropertyAccess
90 def addColumn(self, i, col):
91 self.activeColumns.append(col)
92 info = wx.ListItem()
93 info.SetMask(col.mask | wx.LIST_MASK_FORMAT)
94 if col.imageId not in (None, -1):
95 info.SetImage(col.imageId)
96 info.SetText(col.columnText)
97 info.SetWidth(-1)
98 info.SetAlign(wx.LIST_FORMAT_LEFT)
99 self.InsertColumn(i, info)
100 col.resized = False
101 if i == 0 and col.size != wx.LIST_AUTOSIZE_USEHEADER:
102 col.size += 4
103 self.SetColumnWidth(i, col.size)
104
105 def appendColumnBySpec(self, colSpec):
106 self.insertColumnBySpec(len(self.activeColumns), colSpec)

Callers 1

insertColumnBySpecMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected