|
@@ -600,13 +600,8 @@ class ItemList(ListCtrl,
|
|
|
for column in columns:
|
|
|
self.InsertColumn(i, column)
|
|
|
i += 1
|
|
|
- #
|
|
|
- # add some attributes
|
|
|
- #
|
|
|
- self.attr1 = wx.ListItemAttr()
|
|
|
- self.attr1.SetBackgroundColour(wx.Colour(238, 238, 238))
|
|
|
- self.attr2 = wx.ListItemAttr()
|
|
|
- self.attr2.SetBackgroundColour("white")
|
|
|
+
|
|
|
+ self.EnableAlternateRowColours()
|
|
|
|
|
|
if self.sourceData:
|
|
|
self.Populate()
|
|
@@ -706,14 +701,6 @@ class ItemList(ListCtrl,
|
|
|
def OnGetItemImage(self, item):
|
|
|
return -1
|
|
|
|
|
|
- def OnGetItemAttr(self, item):
|
|
|
- """Get item attributes"""
|
|
|
- index = self.itemIndexMap[item]
|
|
|
- if (index % 2) == 0:
|
|
|
- return self.attr2
|
|
|
- else:
|
|
|
- return self.attr1
|
|
|
-
|
|
|
def SortItems(self, sorter=cmp):
|
|
|
"""Sort items"""
|
|
|
items = list(self.itemDataMap.keys())
|