[GRASS-SVN] r33765 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 8 11:17:17 EDT 2008


Author: martinl
Date: 2008-10-08 11:17:17 -0400 (Wed, 08 Oct 2008)
New Revision: 33765

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: combobox in dialog read only
(merge from devbr6, r33764)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-10-08 15:11:14 UTC (rev 33764)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-10-08 15:17:17 UTC (rev 33765)
@@ -1077,7 +1077,7 @@
                                         flag=wx.ADJUST_MINSIZE | wx.TOP | wx.RIGHT | wx.LEFT, border=5)
                         cb = wx.ComboBox(parent=which_panel, id=wx.ID_ANY, value=p.get('default',''),
                                          size=globalvar.DIALOG_COMBOBOX_SIZE,
-                                         choices=valuelist, style=wx.CB_DROPDOWN)
+                                         choices=valuelist, style=wx.CB_DROPDOWN | wx.CB_READONLY)
                         if p.get('value','') != '':
                             cb.SetValue(p['value']) # parameter previously set
                         which_sizer.Add( item=cb, proportion=0,



More information about the grass-commit mailing list