[GRASS-SVN] r42672 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 27 18:04:36 EDT 2010


Author: martinl
Date: 2010-06-27 22:04:36 +0000 (Sun, 27 Jun 2010)
New Revision: 42672

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
Log:
wxGUI/nviz: fix setting background color
(merge r42671 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py	2010-06-27 22:00:15 UTC (rev 42671)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py	2010-06-27 22:04:36 UTC (rev 42672)
@@ -157,15 +157,11 @@
         # define default attributes for map objects
         Nviz_set_surface_attr_default()
         # set background color
-        Nviz_set_bgcolor(self.data, Nviz_color_from_str("white")) # TODO
-        self.SetBgColor("white")
+        Nviz_set_bgcolor(self.data, Nviz_color_from_str("white"))
         
         # initialize view, lights
         Nviz_init_view(self.data)
         
-        # clear window
-        GS_clear(self.data.bgcolor)
-        
         Debug.msg(1, "Nviz::InitView()")
         
     def SetBgColor(self, color_str):
@@ -173,7 +169,7 @@
         
         @param color_str color string
         """
-        self.data.bgcolor = Nviz_color_from_str(color_str)
+        Nviz_set_bgcolor(self.data, Nviz_color_from_str(color_str))
         
     def SetLight(self, x, y, z, color, bright, ambient, w = 0, lid = 1):
         """!Change lighting settings



More information about the grass-commit mailing list