[Greater-commits] r342 - trunk/GREAT-ER/Thuban/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 1 09:55:49 CEST 2011


Author: aheinecke
Date: 2011-07-01 09:55:49 +0200 (Fri, 01 Jul 2011)
New Revision: 342

Modified:
   trunk/GREAT-ER/Thuban/UI/classifier.py
Log:
Use true or false in the boolean editor of the visible field


Modified: trunk/GREAT-ER/Thuban/UI/classifier.py
===================================================================
--- trunk/GREAT-ER/Thuban/UI/classifier.py	2011-06-30 16:07:28 UTC (rev 341)
+++ trunk/GREAT-ER/Thuban/UI/classifier.py	2011-07-01 07:55:49 UTC (rev 342)
@@ -362,7 +362,9 @@
         self.__colAttr = {}
 
         attr = grid.GridCellAttr()
-        attr.SetEditor(grid.GridCellBoolEditor())
+        editor = grid.GridCellBoolEditor()
+        editor.UseStringValues("True", "False")
+        attr.SetEditor(editor)
         attr.SetRenderer(grid.GridCellBoolRenderer())
         attr.SetAlignment(wx.ALIGN_CENTER, wx.ALIGN_CENTER)
         self.__colAttr[COL_VISIBLE] = attr



More information about the Greater-commits mailing list