[GRASS-SVN] r49439 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 30 14:51:57 EST 2011


Author: annakrat
Date: 2011-11-30 11:51:57 -0800 (Wed, 30 Nov 2011)
New Revision: 49439

Modified:
   grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxNviz: fix SymbolButton again (r49325 disappeared during the gui layout change)

Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py	2011-11-30 19:38:13 UTC (rev 49438)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py	2011-11-30 19:51:57 UTC (rev 49439)
@@ -194,10 +194,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