cmccall95
cmccall95

Reputation: 149

Listctrl SetItemData as String

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])

Upvotes: 0

Views: 149

Answers (0)

Related Questions