[GRASS-SVN] r58678 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 11 13:15:00 PST 2014
Author: martinl
Date: 2014-01-11 13:15:00 -0800 (Sat, 11 Jan 2014)
New Revision: 58678
Modified:
grass/trunk/gui/wxpython/gmodeler/dialogs.py
Log:
wxGUI/modeler: disable sorting for ModelListCtrl
Modified: grass/trunk/gui/wxpython/gmodeler/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/dialogs.py 2014-01-11 18:52:51 UTC (rev 58677)
+++ grass/trunk/gui/wxpython/gmodeler/dialogs.py 2014-01-11 21:15:00 UTC (rev 58678)
@@ -605,12 +605,10 @@
class ModelListCtrl(wx.ListCtrl,
listmix.ListCtrlAutoWidthMixin,
- listmix.TextEditMixin,
- listmix.ColumnSorterMixin):
+ listmix.TextEditMixin):
def __init__(self, parent, columns, frame, id = wx.ID_ANY, columnsNotEditable = [],
style = wx.LC_REPORT | wx.BORDER_NONE |
- wx.LC_SORT_ASCENDING |wx.LC_HRULES |
- wx.LC_VRULES, **kwargs):
+ wx.LC_HRULES | wx.LC_VRULES, **kwargs):
"""!List of model variables"""
self.parent = parent
self.columns = columns
@@ -621,8 +619,7 @@
wx.ListCtrl.__init__(self, parent, id = id, style = style, **kwargs)
listmix.ListCtrlAutoWidthMixin.__init__(self)
listmix.TextEditMixin.__init__(self)
- listmix.ColumnSorterMixin.__init__(self, 4)
-
+
i = 0
for col in columns:
self.InsertColumn(i, col)
@@ -651,6 +648,10 @@
"""!Finish editing of item"""
pass
+ def GetListCtrl(self):
+ """!Used by ColumnSorterMixin"""
+ return self
+
def OnColClick(self, event):
"""!Click on column header (order by)"""
event.Skip()
@@ -662,10 +663,6 @@
self.SetColumnWidth(2, 200) # default value
- def GetListCtrl(self):
- """!Used by ColumnSorterMixin"""
- return self
-
def GetData(self):
"""!Get list data"""
return self.itemDataMap
@@ -794,10 +791,6 @@
self.SetColumnWidth(1, 75)
self.SetColumnWidth(2, 65)
- def GetListCtrl(self):
- """!Used by ColumnSorterMixin"""
- return self
-
def GetData(self):
"""!Get list data"""
return self.itemDataMap
More information about the grass-commit
mailing list