Selaa lähdekoodia

wxGUI: fix refreshing in symbol dialog on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56362 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 vuotta sitten
vanhempi
commit
3c4f5926d9
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      gui/wxpython/gui_core/widgets.py

+ 3 - 0
gui/wxpython/gui_core/widgets.py

@@ -681,6 +681,7 @@ class SingleSymbolPanel(wx.Panel):
         """!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 @@ class SingleSymbolPanel(wx.Panel):
         """!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