flag
authorpierre <ratinaud@univ-tlse2.fr>
Thu, 10 Oct 2024 13:23:02 +0000 (15:23 +0200)
committerpierre <ratinaud@univ-tlse2.fr>
Thu, 10 Oct 2024 13:23:02 +0000 (15:23 +0200)
search_list.py

index 6aff98b..b943db5 100644 (file)
@@ -53,17 +53,17 @@ class SearchList(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSort
             s="self.%s= self.il.Add(wx.ArtProvider.GetBitmap(wx.ART_%s,wx.ART_TOOLBAR,(16,16)))" % (k,v)
             exec(s)
         self.SetImageList(self.il, wx.IMAGE_LIST_SMALL)
-        self.attr1 = wx.ListItemAttr()
+        self.attr1 = wx.ItemAttr()
         self.attr1.SetBackgroundColour((220, 220, 220))
-        self.attrsg = wx.ListItemAttr()
+        self.attrsg = wx.ItemAttr()
         self.attrsg.SetBackgroundColour((230, 230, 230))
-        self.attr2 = wx.ListItemAttr()
+        self.attr2 = wx.ItemAttr()
         self.attr2.SetBackgroundColour((190, 249, 236))
-        self.attr2s = wx.ListItemAttr()
+        self.attr2s = wx.ItemAttr()
         self.attr2s.SetBackgroundColour((211, 252, 244))
-        self.attr3 = wx.ListItemAttr()
+        self.attr3 = wx.ItemAttr()
         self.attr3.SetBackgroundColour((245, 180, 180))
-        self.attr3s = wx.ListItemAttr()
+        self.attr3s = wx.ItemAttr()
         self.attr3s.SetBackgroundColour((245, 190, 190))
         tID = wx.NewId()
         self.dlist = dlist