Author: johannes
Date: 2007-05-16 09:16:36 -0500 (Wed, 16 May 2007)
New Revision: 9593
Modified:
trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Don't make dropdowns gray
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2007-05-16
12:53:12 UTC (rev 9592)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py 2007-05-16
14:16:36 UTC (rev 9593)
@@ -399,9 +399,13 @@
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 not 'wxMac' in wx.PlatformInfo:
+ if can_change:
if editable:
colour = wx.NullColour
else:
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue