[gnue] r9643 - trunk/gnue-forms/src/uidrivers/wx26/widgets

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: johannes
Date: 2007-05-31 01:53:48 -0500 (Thu, 31 May 2007)
New Revision: 9643

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Use a call to SetMark() on wx.GTK to select all within a dropdown.  
SetSelection() does *not* work here!

issue145 external


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py	2007-05-30 14:50:39 UTC (rev 9642)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py	2007-05-31 06:53:48 UTC (rev 9643)
@@ -565,7 +565,10 @@
 
         widget = self.widgets[index]
 
-        if hasattr(widget, 'SelectAll'):
+        if hasattr(widget, 'SetMark'):
+            widget.SetMark(0, len(widget.GetValue()))
+
+        elif hasattr(widget, 'SetSelection'):
             widget.SetSelection(-1, -1)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.