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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 30 09:53:56 EDT 2008


Author: martinl
Date: 2008-03-30 09:53:56 -0400 (Sun, 30 Mar 2008)
New Revision: 30812

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI (mapdisplay): cosmetics in statusbar text formatting (spaces to make coordinates readable), related to trac #106

Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-03-30 13:34:31 UTC (rev 30811)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-03-30 13:53:56 UTC (rev 30812)
@@ -2440,7 +2440,7 @@
         # update statusbar if required
         e, n = self.MapWindow.Pixel2Cell(event.GetPositionTuple())
         if self.statusText == "Coordinates":
-            self.statusbar.SetStatusText("%.2f,%.2f" % (e, n), 0)
+            self.statusbar.SetStatusText("%.2f, %.2f" % (e, n), 0)
 
         event.Skip()
 
@@ -2621,7 +2621,7 @@
             self.statusbar.SetStatusText("", 0)
 
         elif self.statusText == "Extent":
-            self.statusbar.SetStatusText("%.2f-%.2f,%.2f-%.2f" %
+            self.statusbar.SetStatusText("%.2f - %.2f, %.2f - %.2f" %
                                          (self.Map.region["w"], self.Map.region["e"],
                                           self.Map.region["s"], self.Map.region["n"]), 0)
 
@@ -2635,13 +2635,13 @@
 
         elif self.statusText == "Comp. region":
             compregion = self.Map.GetRegion()
-            self.statusbar.SetStatusText("%.2f-%.2f,%.2f-%.2f (%.2f,%.2f)" %
+            self.statusbar.SetStatusText("%.2f - %.2f, %.2f - %.2f (%.2f, %.2f)" %
                                          (compregion["w"], compregion["e"],
                                           compregion["s"], compregion["n"],
                                           compregion["ewres"], compregion["nsres"]), 0)
             
         elif self.statusText == "Geometry":
-            self.statusbar.SetStatusText("rows=%d;cols=%d;nsres=%.2f;ewres=%.2f" %
+            self.statusbar.SetStatusText("rows=%d; cols=%d; nsres=%.2f; ewres=%.2f" %
                                          (self.Map.region["rows"], self.Map.region["cols"],
                                           self.Map.region["nsres"], self.Map.region["ewres"]), 0)
         elif self.statusText == "Map scale":



More information about the grass-commit mailing list