[GRASS-SVN] r59593 - grass/branches/releasebranch_7_0/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 5 20:08:31 PDT 2014


Author: annakrat
Date: 2014-04-05 20:08:31 -0700 (Sat, 05 Apr 2014)
New Revision: 59593

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/animation/provider.py
Log:
wxGUI/animation: fix formatting of background color (merged from trunk, r59592)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/animation/provider.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/animation/provider.py	2014-04-06 03:06:45 UTC (rev 59592)
+++ grass/branches/releasebranch_7_0/gui/wxpython/animation/provider.py	2014-04-06 03:08:31 UTC (rev 59593)
@@ -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