Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
23e02734f1
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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)