commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r10064 - trunk/gnue-forms/src/uidrivers/wx/widgets


From: reinhard
Subject: [gnue] r10064 - trunk/gnue-forms/src/uidrivers/wx/widgets
Date: Thu, 26 Nov 2009 08:05:07 -0600 (CST)

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
 
 
     # -------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]