From 6f838d12e922ea67047162a9fce9a28128bc5132 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 14 Mar 2018 13:43:59 -0600 Subject: [PATCH] Avoid converting items to string before passing to SetItem --- src/multiplatform_widgets/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multiplatform_widgets/widgets.py b/src/multiplatform_widgets/widgets.py index 0ab06d07..10c29166 100644 --- a/src/multiplatform_widgets/widgets.py +++ b/src/multiplatform_widgets/widgets.py @@ -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))