[GRASS-SVN] r43198 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 21 23:55:04 EDT 2010


Author: hamish
Date: 2010-08-22 03:55:04 +0000 (Sun, 22 Aug 2010)
New Revision: 43198

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mcalc_builder.py
Log:
expand conditional, helping whitespace (merge from trunk)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mcalc_builder.py	2010-08-22 03:54:57 UTC (rev 43197)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mcalc_builder.py	2010-08-22 03:55:04 UTC (rev 43198)
@@ -175,7 +175,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'))
         
         #
@@ -340,8 +340,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