Browse Source

fix wxGUI: propagate option key_desc (https://trac.osgeo.org/grass/ticket/1192)
(merge https://trac.osgeo.org/grass/changeset/43929 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43930 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 14 years ago
parent
commit
e6f24cef66
1 changed files with 5 additions and 1 deletions
  1. 5 1
      gui/wxpython/gui_modules/menuform.py

+ 5 - 1
gui/wxpython/gui_modules/menuform.py

@@ -1187,8 +1187,12 @@ class cmdPanel(wx.Panel):
             else:
                 title_sizer = wx.BoxSizer(wx.HORIZONTAL)
                 title_txt = wx.StaticText(parent=which_panel)
+                if p['key_desc']:
+                    ltype = ','.join(p['key_desc'])
+                else:
+                    ltype = p['type']
                 rtitle_txt = wx.StaticText(parent=which_panel,
-                                           label = '(' + p['name'] + ', ' + p['type'] + ')')
+                                           label = '(' + p['name'] + '=' + ltype + ')')
                 title_sizer.Add(item=title_txt, proportion=1,
                                 flag=wx.LEFT | wx.TOP | wx.EXPAND, border=5)
                 title_sizer.Add(item=rtitle_txt, proportion=0,