[GRASS-SVN] r54028 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 25 03:22:21 PST 2012


Author: annakrat
Date: 2012-11-25 03:22:21 -0800 (Sun, 25 Nov 2012)
New Revision: 54028

Modified:
   grass/trunk/gui/wxpython/mapdisp/gprint.py
   grass/trunk/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI: fix indentation

Modified: grass/trunk/gui/wxpython/mapdisp/gprint.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/gprint.py	2012-11-25 11:13:03 UTC (rev 54027)
+++ grass/trunk/gui/wxpython/mapdisp/gprint.py	2012-11-25 11:22:21 UTC (rev 54028)
@@ -95,21 +95,18 @@
     def __init__(self, parent, mapwin):
         self.mapframe = parent
         self.mapwin = mapwin
-	#self.frame = frame
 
-	self.printData = None
+        self.printData = None
 
-	#self.canvas = ScrolledWindow.MyCanvas(self)
-
     def setup(self):
-	if self.printData:
-	    return
+        if self.printData:
+            return
         self.printData = wx.PrintData()
         self.printData.SetPaperId(wx.PAPER_LETTER)
         self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)
 
     def OnPageSetup(self, event):
-	self.setup()
+        self.setup()
         psdd = wx.PageSetupDialogData(self.printData)
         psdd.CalculatePaperSizeFromId()
         dlg = wx.PageSetupDialog(self.mapwin, psdd)
@@ -123,7 +120,7 @@
         dlg.Destroy()
 
     def OnPrintPreview(self, event):
-	self.setup()
+        self.setup()
         data = wx.PrintDialogData(self.printData)
         printout = MapPrint(self.mapwin)
         printout2 = MapPrint(self.mapwin)
@@ -141,7 +138,7 @@
         pfrm.Show(True)
 
     def OnDoPrint(self, event):
-	self.setup()
+        self.setup()
         pdd = wx.PrintDialogData(self.printData)
         # set number of pages/copies
         pdd.SetToPage(1)

Modified: grass/trunk/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/statusbar.py	2012-11-25 11:13:03 UTC (rev 54027)
+++ grass/trunk/gui/wxpython/mapdisp/statusbar.py	2012-11-25 11:22:21 UTC (rev 54028)
@@ -618,7 +618,7 @@
             format = UserSettings.Get(group = 'projection', key = 'format',
                                       subkey = 'll')
             if self.mapFrame.GetMap().projinfo['proj'] == 'll' and format == 'DMS':
-                    self.SetValue("%s" % utils.Deg2DMS(region['center_easting'], 
+                self.SetValue("%s" % utils.Deg2DMS(region['center_easting'], 
                                                                             region['center_northing'],
                                                                             precision = precision))
             else:



More information about the grass-commit mailing list