浏览代码

wxGUI: fix ext simple mode

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42170 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父节点
当前提交
b2f7420f71
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 1
      gui/wxpython/gui_modules/help.py
  2. 1 1
      gui/wxpython/wxgui.py

+ 4 - 1
gui/wxpython/gui_modules/help.py

@@ -892,7 +892,10 @@ class ExtensionTree(ItemTree):
                     mdict[prefix][name][key] = value
             else:
                 prefix, name = line.strip().split('.', 1)
-                mdict[prefix] = { name : dict() }
+                if not mdict.has_key(prefix):
+                    mdict[prefix] = dict()
+                
+                mdict[prefix][name] = { 'command' : prefix + '.' + name }
         
         for prefix in mdict.keys():
             prefixName = self._expandPrefix(prefix)

+ 1 - 1
gui/wxpython/wxgui.py

@@ -919,7 +919,7 @@ class GMFrame(wx.Frame):
 
     def OnInstallExtension(self, event):
         """!Install extension from GRASS Addons SVN repository"""
-        win = InstallExtensionWindow(self, size = (500, 300))
+        win = InstallExtensionWindow(self, size = (550, 400))
         win.CentreOnScreen()
         win.Show()