How to get column number or value in wx.ListControl wxPython? I want to sort the item by column when I click it. I'm using BoaConstructor IDE. Please help me :)
Get column number or value in wx.ListControl wxPython
610 Views Asked by Zakky M At
3
There are 3 best solutions below
0
On
To get the value of the first (0) column header:
rowid = self.list_ctrl.GetColumn(0)
print (rowid.GetText())
To be able to sort the listctrl read up on wx.lib.mixins.listctrl
https://wxpython.org/Phoenix/docs/html/wx.lib.mixins.listctrl.html
Its been a while since I have used wxPython, but I some methods to obtain item data from a listctrl are: