Author: reinhard Date: 2009-12-08 09:24:24 -0600 (Tue, 08 Dec 2009) New Revision: 10105
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py Log: Also change the background color of dropdowns. Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-12-08 12:47:53 UTC (rev 10104) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2009-12-08 15:24:24 UTC (rev 10105) @@ -468,13 +468,9 @@ if isinstance(self.widgets[index], wx.TextCtrl): self.widgets[index].SetEditable(editable) - can_change = not 'wxMac' in wx.PlatformInfo - if 'wxMSW' in wx.PlatformInfo: - can_change = not isinstance(self.widgets[index], wx.ComboBox) - # We set the background color to grey for all kinds of widgets if they # are not editable, so the user can see some difference. - if can_change: + if not 'wxMac' in wx.PlatformInfo: if editable: colour = wx.NullColour else: _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue