can I change a column header in wx.ListCtrl?

Can’t find anything about this in the documentation or book, but definitely needing this feature right now. It looks like I can get away with list.DeleteAllColumns() followed by another call to list.InsertColumn(), but this seems potentially dangerous and/or less flexible.

thanks,

Nat

col = listCtrl.GetColumn(n)
  col.SetText('HOWDY')
  listCtrl.SetColumn(n, col)

···

On 12/1/10 4:03 PM, Nat Echols wrote:

Can't find anything about this in the documentation or book, but
definitely needing this feature right now. It looks like I can get away
with list.DeleteAllColumns() followed by another call to
list.InsertColumn(), but this seems potentially dangerous and/or less
flexible.

--
Robin Dunn
Software Craftsman

Perfect, thanks.

-Nat

···

On Wed, Dec 1, 2010 at 4:27 PM, Robin Dunn robin@alldunn.com wrote:

On 12/1/10 4:03 PM, Nat Echols wrote:

Can’t find anything about this in the documentation or book, but

definitely needing this feature right now. It looks like I can get away

with list.DeleteAllColumns() followed by another call to

list.InsertColumn(), but this seems potentially dangerous and/or less

flexible.

col = listCtrl.GetColumn(n)

    col.SetText('HOWDY')

    listCtrl.SetColumn(n, col)