|
@@ -115,11 +115,7 @@ class VirtualAttributeList(ListCtrl,
|
|
message=e.value)
|
|
message=e.value)
|
|
return
|
|
return
|
|
|
|
|
|
- # add some attributes (colourful background for each item rows)
|
|
|
|
- self.attr1 = wx.ListItemAttr()
|
|
|
|
- self.attr1.SetBackgroundColour(wx.Colour(238, 238, 238))
|
|
|
|
- self.attr2 = wx.ListItemAttr()
|
|
|
|
- self.attr2.SetBackgroundColour("white")
|
|
|
|
|
|
+ self.EnableAlternateRowColours()
|
|
self.il = wx.ImageList(16, 16)
|
|
self.il = wx.ImageList(16, 16)
|
|
self.sm_up = self.il.Add(
|
|
self.sm_up = self.il.Add(
|
|
wx.ArtProvider.GetBitmap(
|
|
wx.ArtProvider.GetBitmap(
|
|
@@ -436,13 +432,6 @@ class VirtualAttributeList(ListCtrl,
|
|
s = self.itemDataMap[index][col]
|
|
s = self.itemDataMap[index][col]
|
|
return str(s)
|
|
return str(s)
|
|
|
|
|
|
- def OnGetItemAttr(self, item):
|
|
|
|
- """Get item attributes"""
|
|
|
|
- if (item % 2) == 0:
|
|
|
|
- return self.attr2
|
|
|
|
- else:
|
|
|
|
- return self.attr1
|
|
|
|
-
|
|
|
|
def OnColumnMenu(self, event):
|
|
def OnColumnMenu(self, event):
|
|
"""Column heading right mouse button -> pop-up menu"""
|
|
"""Column heading right mouse button -> pop-up menu"""
|
|
self._col = event.GetColumn()
|
|
self._col = event.GetColumn()
|