Avoid converting items to string before passing to SetItem

This commit is contained in:
Manuel Cortez 2018-03-14 13:43:59 -06:00
parent 010c0011aa
commit 6f838d12e9

View File

@ -37,9 +37,9 @@ class list(object):
if self.system == "Windows":
if reversed == False: items = self.list.GetItemCount()
else: items = 0
self.list.InsertItem(items, str(item[0]))
self.list.InsertItem(items, item[0])
for i in range(1, len(self.columns)):
self.list.SetItem(items, i, str(item[i]))
self.list.SetItem(items, i, item[i])
else:
self.list.Append(" ".join(item))