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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 22 13:55:31 EST 2011


Author: annakrat
Date: 2011-11-22 10:55:30 -0800 (Tue, 22 Nov 2011)
New Revision: 49325

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxNviz: attempt to fix GenBitmapTextButton

Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2011-11-22 10:40:29 UTC (rev 49324)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py	2011-11-22 18:55:30 UTC (rev 49325)
@@ -178,10 +178,10 @@
         @param usage determines usage and picture
         @param label displayed label
         """
-        BitmapTextButton.__init__(self, parent = parent, label = " " + label, **kwargs)
-        
         size = (15, 15)
         buffer = wx.EmptyBitmap(*size)
+        BitmapTextButton.__init__(self, parent = parent, label = " " + label, bitmap = buffer, **kwargs)
+        
         dc = wx.MemoryDC()
         dc.SelectObject(buffer)
         maskColor = wx.Color(255, 255, 255)



More information about the grass-commit mailing list