[GRASS-SVN] r73891 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 30 07:39:30 PST 2018


Author: annakrat
Date: 2018-12-30 07:39:30 -0800 (Sun, 30 Dec 2018)
New Revision: 73891

Modified:
   grass/trunk/gui/wxpython/dbmgr/base.py
Log:
wxGUI/dbmgr: ListCtrl needs to override certain method

Modified: grass/trunk/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/base.py	2018-12-30 15:01:21 UTC (rev 73890)
+++ grass/trunk/gui/wxpython/dbmgr/base.py	2018-12-30 15:39:30 UTC (rev 73891)
@@ -84,7 +84,7 @@
             self.parent.SetStatusText(text_string.strip())
 
 
-class VirtualAttributeList(wx.ListCtrl,
+class VirtualAttributeList(ListCtrl,
                            listmix.ListCtrlAutoWidthMixin,
                            listmix.ColumnSorterMixin):
     """Support virtual list class for Attribute Table Manager (browse page)
@@ -105,7 +105,7 @@
 
         self.sqlFilter = {}
 
-        wx.ListCtrl.__init__(self, parent=parent, id=wx.ID_ANY,
+        ListCtrl.__init__(self, parent=parent, id=wx.ID_ANY,
                              style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES |
                              wx.LC_VIRTUAL | wx.LC_SORT_ASCENDING)
 
@@ -688,6 +688,9 @@
         """Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py"""
         return (self.sm_dn, self.sm_up)
 
+    def OnGetItemImage(self, item):
+        return -1
+
     def IsEmpty(self):
         """Check if list if empty"""
         if self.columns:



More information about the grass-commit mailing list