(self, i, col)
| 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) |
no test coverage detected