Author: johannes
Date: 2006-03-08 01:56:59 -0600 (Wed, 08 Mar 2006)
New Revision: 8215
Modified:
trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
Log:
Set the value into the textportion directly if it's not available in the
list of values - that shows what has been entered all the time
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py 2006-03-07
16:00:22 UTC (rev 8214)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py 2006-03-08
07:56:59 UTC (rev 8215)
@@ -198,7 +198,8 @@
if isinstance (widget, wx.ComboBox):
# We use SetStringSelection to keep the selected index in sync with
# the string value (e.g. in Choice-Controls on OS X)
- widget.SetStringSelection (value)
+ if not widget.SetStringSelection (value):
+ widget.SetValue (value)
else:
widget.SetValue (value)
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue