[GRASS-SVN] r59592 - grass/trunk/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 5 20:06:45 PDT 2014


Author: annakrat
Date: 2014-04-05 20:06:45 -0700 (Sat, 05 Apr 2014)
New Revision: 59592

Modified:
   grass/trunk/gui/wxpython/animation/provider.py
Log:
wxGUI/animation: fix formatting of background color

Modified: grass/trunk/gui/wxpython/animation/provider.py
===================================================================
--- grass/trunk/gui/wxpython/animation/provider.py	2014-04-05 22:02:22 UTC (rev 59591)
+++ grass/trunk/gui/wxpython/animation/provider.py	2014-04-06 03:06:45 UTC (rev 59592)
@@ -697,9 +697,9 @@
     os.environ['GRASS_HEIGHT'] = str(height)
     driver = UserSettings.Get(group='display', key='driver', subkey='type')
     os.environ['GRASS_RENDER_IMMEDIATE'] = driver
-    os.environ['GRASS_BACKGROUNDCOLOR'] = '{r}{g}{b}'.format(r=bgcolor[0],
-                                                             g=bgcolor[1],
-                                                             b=bgcolor[2])
+    os.environ['GRASS_BACKGROUNDCOLOR'] = '{r:02x}{g:02x}{b:02x}'.format(r=bgcolor[0],
+                                                                         g=bgcolor[1],
+                                                                         b=bgcolor[2])
     os.environ['GRASS_TRUECOLOR'] = "TRUE"
     if transparent:
         os.environ['GRASS_TRANSPARENT'] = "TRUE"



More information about the grass-commit mailing list