Use list control length instead of sys.maxsize for platform compatibility

This commit is contained in:
Filip Sufitchi
2018-03-31 16:28:59 -04:00
parent 083af3ebc7
commit 18bb3bf246
5 changed files with 6 additions and 13 deletions

View File

@@ -1,5 +1,3 @@
import sys
# noinspection PyPackageRequirements
import wx
@@ -79,7 +77,7 @@ class ItemProperties(wx.Panel):
attrName = name.title()
value = getattr(self.item, name)
index = self.paramList.InsertItem(sys.maxsize, attrName)
index = self.paramList.InsertItem(self.paramList.GetItemCount(), attrName)
# index = self.paramList.InsertImageStringItem(sys.maxint, attrName)
idNameMap[idCount] = attrName
self.paramList.SetItemData(index, idCount)