浏览代码

wxGUI: fix vdigit toolbar (selection arrow button) with wxPython 3

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

+ 2 - 2
gui/wxpython/gui_core/toolbars.py

@@ -263,8 +263,8 @@ class BaseToolbar(wx.ToolBar):
             bitmap = wx.Bitmap(name = arrowPath)
             bitmap = wx.Bitmap(name = arrowPath)
         else:
         else:
             bitmap = wx.ArtProvider.GetBitmap(id = wx.ART_MISSING_IMAGE, client = wx.ART_TOOLBAR)
             bitmap = wx.ArtProvider.GetBitmap(id = wx.ART_MISSING_IMAGE, client = wx.ART_TOOLBAR)
-        button =  wx.BitmapButton(parent = self, id = wx.ID_ANY, size = ((-1, self.GetSize()[1])),
-                                  bitmap = bitmap, style = wx.NO_BORDER)
+        button =  wx.BitmapButton(parent=self, id=wx.ID_ANY, size=((-1, self.GetToolSize()[1])),
+                                  bitmap=bitmap, style=wx.NO_BORDER)
         button.SetToolTipString(tooltip)
         button.SetToolTipString(tooltip)
 
 
         return button
         return button