Sfoglia il codice sorgente

wxGUI/preferences: add color table widget

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58981 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 anni fa
parent
commit
0d18a94140
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      gui/wxpython/gui_core/preferences.py

+ 4 - 4
gui/wxpython/gui_core/preferences.py

@@ -49,7 +49,7 @@ from core.gcmd     import RunCommand
 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 @@ class PreferencesDialog(PreferencesBaseDialog):
         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():