浏览代码

wxNviz: attempt to fix GenBitmapTextButton

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49325 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 年之前
父节点
当前提交
23e02734f1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_modules/nviz_tools.py

+ 2 - 2
gui/wxpython/gui_modules/nviz_tools.py

@@ -178,10 +178,10 @@ class SymbolButton(BitmapTextButton):
         @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)