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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 27 18:00:15 EDT 2010


Author: martinl
Date: 2010-06-27 22:00:15 +0000 (Sun, 27 Jun 2010)
New Revision: 42671

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxnviz.py
Log:
wxGUI/nviz: fix setting background color


Modified: grass/trunk/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2010-06-27 21:46:11 UTC (rev 42670)
+++ grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2010-06-27 22:00:15 UTC (rev 42671)
@@ -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