[GRASS-SVN] r58981 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 10 13:55:24 PST 2014


Author: annakrat
Date: 2014-02-10 13:55:24 -0800 (Mon, 10 Feb 2014)
New Revision: 58981

Modified:
   grass/trunk/gui/wxpython/gui_core/preferences.py
Log:
wxGUI/preferences: add color table widget

Modified: grass/trunk/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/preferences.py	2014-02-10 18:09:57 UTC (rev 58980)
+++ grass/trunk/gui/wxpython/gui_core/preferences.py	2014-02-10 21:55:24 UTC (rev 58981)
@@ -49,7 +49,7 @@
 from core.utils    import ListOfMapsets, GetColorTables, ReadEpsgCodes, StoreEnvVariable, _
 from core.settings import UserSettings
 from gui_core.dialogs import SymbolDialog
-from gui_core.widgets import IntegerValidator
+from gui_core.widgets import IntegerValidator, ColorTablesComboBox
 from core.debug       import Debug
 
 class PreferencesBaseDialog(wx.Dialog):
@@ -917,9 +917,9 @@
         gridSizer.Add(item = rasterCTCheck, flag = wx.ALIGN_CENTER_VERTICAL,
                       pos = (row, 0))
         
-        rasterCTName = wx.Choice(parent = panel, id = wx.ID_ANY, size = (200, -1),
-                               choices = GetColorTables(),
-                               name = "GetStringSelection")
+        rasterCTName = ColorTablesComboBox(parent=panel, size=globalvar.DIALOG_COMBOBOX_SIZE,
+                                           choices=GetColorTables(),
+                                           name="GetStringSelection")
         rasterCTName.SetStringSelection(self.settings.Get(group = 'rasterLayer', key = 'colorTable', subkey = 'selection'))
         self.winId['rasterLayer:colorTable:selection'] = rasterCTName.GetId()
         if not rasterCTCheck.IsChecked():



More information about the grass-commit mailing list