I have no problems using self.tree.AddColumn(x, self.colLabels), but would like to use InsertColumnInfo to do the align and size stuff.
Does AddColumnInfo(info) work?
Not really, as the column headers don't show.
I attached a small test program, you just need to uncomment the approriate line.
This works:
for x in range(len(self.colLabels)):
info.SetText(self.colLabels)
info.SetAlignment(self.colAlign)
info.SetWidth( self.tlcColSize)
self.treeList.AddColumnInfo(info)
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I have no problems using self.tree.AddColumn(x, self.colLabels), but would like to use InsertColumnInfo to do the align and size stuff.
Does AddColumnInfo(info) work?
Not really, as the column headers don't show.
I attached a small test program, you just need to uncomment the approriate line.
This works:
for x in range(len(self.colLabels)):
info.SetText(self.colLabels)
info.SetAlignment(self.colAlign)
info.SetWidth( self.tlcColSize)
self.treeList.AddColumnInfo(info)