Listctrl SetItemData as String

129 views Asked by At

I am not understanding why I can't use a string for SetItemData in a ListCtrl. I use it for a CustomTreeControl and it works fine. I don't get it.

"TypeError: ListCtrl.SetItemData(): argument 2 has unexpected type 'str'"

list_row = self.lc_results.GetItemCount()
self.lc_results.SetItemData(list_row, item.split(':')[1])
0

There are 0 answers