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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 14 09:45:55 PDT 2013


Author: annakrat
Date: 2013-07-14 09:45:55 -0700 (Sun, 14 Jul 2013)
New Revision: 57126

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
   grass/trunk/gui/wxpython/mapdisp/mapwindow.py
Log:
wxGUI: mapwindow/frame code decoupling

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2013-07-14 16:29:47 UTC (rev 57125)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2013-07-14 16:45:55 UTC (rev 57126)
@@ -186,6 +186,7 @@
         #
         self.Bind(wx.EVT_ACTIVATE, self.OnFocus)
         self.Bind(wx.EVT_CLOSE,    self.OnCloseWindow)
+        self.Bind(wx.EVT_SIZE,     self.OnSize)
         
         #
         # Update fancy gui style
@@ -214,6 +215,14 @@
 
         self.decorationDialog = None # decoration/overlays
         
+    def OnSize(self, event):
+        """!Adjust statusbar on changing size"""
+        # reposition checkbox in statusbar
+        self.StatusbarReposition()
+        
+        # update statusbar
+        self.StatusbarUpdate()
+
     def GetMapWindow(self):
         return self.MapWindow
     

Modified: grass/trunk/gui/wxpython/mapdisp/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/mapwindow.py	2013-07-14 16:29:47 UTC (rev 57125)
+++ grass/trunk/gui/wxpython/mapdisp/mapwindow.py	2013-07-14 16:45:55 UTC (rev 57126)
@@ -482,12 +482,6 @@
                     self.UpdateMap()
                     updatemap = False
 
-            # reposition checkbox in statusbar
-            self.frame.StatusbarReposition()
-            
-            # update statusbar
-            self.frame.StatusbarUpdate()
-
             if updatemap:
                 self.UpdateMap(render = True)
             self.resize = False



More information about the grass-commit mailing list