[GRASS-SVN] r66627 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 27 19:50:58 PDT 2015


Author: annakrat
Date: 2015-10-27 19:50:58 -0700 (Tue, 27 Oct 2015)
New Revision: 66627

Modified:
   grass/trunk/gui/wxpython/gmodeler/dialogs.py
Log:
wxGUI/modeler: fix for wxPython 3, see #2781

Modified: grass/trunk/gui/wxpython/gmodeler/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/dialogs.py	2015-10-28 02:37:58 UTC (rev 66626)
+++ grass/trunk/gui/wxpython/gmodeler/dialogs.py	2015-10-28 02:50:58 UTC (rev 66627)
@@ -789,8 +789,9 @@
         
         self.SetColumnWidth(0, 100)
         self.SetColumnWidth(1, 75)
-        self.SetColumnWidth(2, 65)
-        
+        if len(self.columns) >= 3:
+            self.SetColumnWidth(2, 65)
+
     def GetData(self):
         """Get list data"""
         return self.itemDataMap



More information about the grass-commit mailing list