[GRASS-SVN] r43192 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 21 23:15:07 EDT 2010


Author: hamish
Date: 2010-08-22 03:15:07 +0000 (Sun, 22 Aug 2010)
New Revision: 43192

Modified:
   grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
Log:
expand conditional, helping whitespace

Modified: grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2010-08-22 03:07:28 UTC (rev 43191)
+++ grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py	2010-08-22 03:15:07 UTC (rev 43192)
@@ -188,7 +188,7 @@
         self.btn['or'].SetToolTipString(_('logical OR'))
         self.btn['ornull'] = wx.Button(parent = self.panel, id = wx.ID_ANY, label = "|||")
         self.btn['ornull'].SetToolTipString(_('logical OR (ignores NULLs'))
-        self.btn['cond'] = wx.Button(parent = self.panel, id = wx.ID_ANY, label = "?:") 
+        self.btn['cond'] = wx.Button(parent = self.panel, id = wx.ID_ANY, label = "a ? b : c") 
         self.btn['cond'].SetToolTipString(_('conditional'))
         
         #
@@ -365,8 +365,8 @@
         elif event.GetId() == self.btn['ornull'].GetId(): mark = "|||"
         elif event.GetId() == self.btn['and'].GetId(): mark = "&&"
         elif event.GetId() == self.btn['andnull'].GetId(): mark = "&&&"
-        elif event.GetId() == self.btn['cond'].GetId(): mark = "?:"
-        elif event.GetId() == self.btn['paren'].GetId(): mark = "()"        
+        elif event.GetId() == self.btn['cond'].GetId(): mark = " ? : "
+        elif event.GetId() == self.btn['paren'].GetId(): mark = "( )"        
         self._addSomething(mark)
         
     def OnSelect(self, event):



More information about the grass-commit mailing list