Author: reinhard Date: 2009-11-26 08:05:07 -0600 (Thu, 26 Nov 2009) New Revision: 10064
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py Log: Refresh control after changing the background color. Required under Windows, doesn't make any difference under GTK2. Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-11-26 11:48:36 UTC (rev 10063) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-11-26 14:05:07 UTC (rev 10064) @@ -660,6 +660,7 @@ widget._gnue_label_.SetForegroundColour(wx.NullColour) widget.GetParent().SetBackgroundColour( self.__current_row_color_save) + widget.GetParent().Refresh() # Needed for Windows # Set new current row to specific color. if index == -1: @@ -676,6 +677,7 @@ wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT)) widget.GetParent().SetBackgroundColour( wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHT)) + widget.GetParent().Refresh() # Needed for Windows # ------------------------------------------------------------------------- _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue