Prechádzať zdrojové kódy

https://trac.osgeo.org/grass/ticket/1387 (wingrass65 - wxgui compiling error and not starting) - patch by Vaclav Petras

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46662 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 rokov pred
rodič
commit
ebecf4693c
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      gui/wxpython/gui_modules/menu.py

+ 3 - 3
gui/wxpython/gui_modules/menu.py

@@ -49,14 +49,14 @@ class Menu(wx.MenuBar):
                 subMenu = self._createMenu(eachItem[1])
                 menu.AppendMenu(wx.ID_ANY, label, subMenu)
             else:
-                self._createMenuItem(menu, *eachItem, menustyle = self.menustyle)
+                self._createMenuItem(menu, self.menustyle, *eachItem)
         
         self.parent.Bind(wx.EVT_MENU_HIGHLIGHT_ALL, self.OnMenuHighlight)
         
         return menu
 
-    def _createMenuItem(self, menu, label, help, handler, gcmd, keywords,
-                        shortcut = '', kind = wx.ITEM_NORMAL, menustyle = 0):
+    def _createMenuItem(self, menu, menustyle, label, help, handler, gcmd, keywords,
+                        shortcut = '', kind = wx.ITEM_NORMAL):
         """!Creates menu items
         There are three menu styles (menu item text styles).
         1 -- label only, 2 -- label and cmd name, 3 -- cmd name only