Преглед на файлове

wxGUI: implement OnRender method in SingleMapFrame

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50528 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová преди 13 години
родител
ревизия
412b15245c
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      gui/wxpython/gui_core/mapdisp.py

+ 8 - 0
gui/wxpython/gui_core/mapdisp.py

@@ -406,6 +406,14 @@ class SingleMapFrame(MapFrameBase):
         """!Returns map window"""
         return self.MapWindow
         
+    def OnRender(self, event):
+        """!Re-render map composition (each map layer)
+        """
+        self.GetWindow().UpdateMap(render = True, renderVector = True)
+        
+        # update statusbar
+        self.StatusbarUpdate()
+        
 
 class DoubleMapFrame(MapFrameBase):
     """! Frame with two map windows.