mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Addressed iteritems & sys.maxint in ListCtrl_edit and CheckListCtrlMixin
This commit is contained in:
@@ -46,8 +46,8 @@ class TestPanel(wx.Panel):
|
||||
self.list.InsertColumn(1, "Title", wx.LIST_FORMAT_RIGHT)
|
||||
self.list.InsertColumn(2, "Genre")
|
||||
|
||||
for key, data in musicdata.iteritems():
|
||||
index = self.list.InsertStringItem(sys.maxint, data[0])
|
||||
for key, data in musicdata.items():
|
||||
index = self.list.InsertStringItem(sys.maxsize, data[0])
|
||||
self.list.SetItem(index, 1, data[1])
|
||||
self.list.SetItem(index, 2, data[2])
|
||||
self.list.SetItemData(index, key)
|
||||
|
||||
@@ -51,7 +51,7 @@ class TestListCtrl(wx.ListCtrl,
|
||||
|
||||
items = listctrldata.items()
|
||||
for key, data in items:
|
||||
index = self.InsertItem(sys.maxint, data[0])
|
||||
index = self.InsertItem(sys.maxsize, data[0])
|
||||
self.SetItem(index, 1, data[1])
|
||||
self.SetItem(index, 2, data[2])
|
||||
self.SetItemData(index, key)
|
||||
|
||||
Reference in New Issue
Block a user