[GRASS-SVN] r64141 - in grass/trunk/gui/wxpython: gui_core lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 13 10:46:32 PST 2015


Author: martinl
Date: 2015-01-13 10:46:32 -0800 (Tue, 13 Jan 2015)
New Revision: 64141

Modified:
   grass/trunk/gui/wxpython/gui_core/treeview.py
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: set background color for LayerTree and CTreeView to white (wxPython 3)


Modified: grass/trunk/gui/wxpython/gui_core/treeview.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/treeview.py	2015-01-13 17:44:40 UTC (rev 64140)
+++ grass/trunk/gui/wxpython/gui_core/treeview.py	2015-01-13 18:46:32 UTC (rev 64141)
@@ -138,6 +138,7 @@
             kw[style] = CT.TR_HIDE_ROOT | CT.TR_FULL_ROW_HIGHLIGHT |\
                 CT.TR_HAS_BUTTONS | CT.TR_LINES_AT_ROOT | CT.TR_SINGLE
         super(CTreeView, self).__init__(parent=parent, model=model, **kw)
+        self.SetBackgroundColour("white")
         self.RefreshItems()
         
 class TreeListView(AbstractTreeViewMixin, ExpansionState, gizmos.TreeListCtrl):

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2015-01-13 17:44:40 UTC (rev 64140)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2015-01-13 18:46:32 UTC (rev 64141)
@@ -159,6 +159,7 @@
         else:
             super(LayerTree, self).__init__(parent, id, style = ctstyle, **kwargs)
         self.SetName("LayerTree")
+        self.SetBackgroundColour("white")
         
         ### SetAutoLayout() causes that no vertical scrollbar is displayed
         ### when some layers are not visible in layer tree



More information about the grass-commit mailing list