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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 4 18:58:41 PST 2014


Author: annakrat
Date: 2014-11-04 18:58:41 -0800 (Tue, 04 Nov 2014)
New Revision: 62606

Modified:
   grass/trunk/gui/wxpython/gui_core/toolbars.py
Log:
wxGUI: fix vdigit toolbar (selection arrow button) with wxPython 3

Modified: grass/trunk/gui/wxpython/gui_core/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/toolbars.py	2014-11-05 02:36:32 UTC (rev 62605)
+++ grass/trunk/gui/wxpython/gui_core/toolbars.py	2014-11-05 02:58:41 UTC (rev 62606)
@@ -263,8 +263,8 @@
             bitmap = wx.Bitmap(name = arrowPath)
         else:
             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)
 
         return button



More information about the grass-commit mailing list