[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8215 - trunk/gnue-forms/src/uidrivers/wx26/widgets
From: |
johannes |
Subject: |
[gnue] r8215 - trunk/gnue-forms/src/uidrivers/wx26/widgets |
Date: |
Wed, 8 Mar 2006 01:56:59 -0600 (CST) |
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8215 - trunk/gnue-forms/src/uidrivers/wx26/widgets,
johannes <=