[GRASS-SVN] r56022 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 28 11:59:28 PDT 2013
Author: annakrat
Date: 2013-04-28 11:59:27 -0700 (Sun, 28 Apr 2013)
New Revision: 56022
Modified:
grass/trunk/gui/wxpython/gui_core/menu.py
Log:
wxGUI/menu: fix displaying commands
Modified: grass/trunk/gui/wxpython/gui_core/menu.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/menu.py 2013-04-28 17:53:40 UTC (rev 56021)
+++ grass/trunk/gui/wxpython/gui_core/menu.py 2013-04-28 18:59:27 UTC (rev 56022)
@@ -49,7 +49,9 @@
subMenu = self._createMenu(child)
menu.AppendMenu(wx.ID_ANY, label, subMenu)
else:
- self._createMenuItem(menu, **child.data)
+ data = child.data.copy()
+ data.pop('label')
+ self._createMenuItem(menu, label=child.label, **data)
self.parent.Bind(wx.EVT_MENU_HIGHLIGHT_ALL, self.OnMenuHighlight)
More information about the grass-commit
mailing list