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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 22 08:52:32 PDT 2013


Author: annakrat
Date: 2013-05-22 08:52:32 -0700 (Wed, 22 May 2013)
New Revision: 56362

Modified:
   grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI: fix refreshing in symbol dialog on Windows

Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py	2013-05-22 15:50:53 UTC (rev 56361)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py	2013-05-22 15:52:32 UTC (rev 56362)
@@ -681,6 +681,7 @@
         """!Panel selected, background changes"""
         self.selected = True
         self.SetBackgroundColour(self.selectColor)
+        self.Refresh()
         event.Skip()
         
         self.symbolSelectionChanged.emit(name=self.GetName(), doubleClick=False)
@@ -692,11 +693,13 @@
         """!Panel deselected, background changes back to default"""
         self.selected = False
         self.SetBackgroundColour(self.deselectColor)
+        self.Refresh()
         
     def Select(self):
         """!Select panel, no event emitted"""
         self.selected = True
         self.SetBackgroundColour(self.selectColor)
+        self.Refresh()
         
 class GListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.CheckListCtrlMixin):
     """!Generic ListCtrl with popup menu to select/deselect all



More information about the grass-commit mailing list