Author: reinhard
Date: 2007-06-05 03:49:12 -0500 (Tue, 05 Jun 2007)
New Revision: 9660
Modified:
trunk/gnue-forms/src/input/displayHandlers/Cursor.py
Log:
Set cursor position to 0 in endEdit. self.display doesn't have a len() for
every entry - it doesn't for checkboxes.
Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2007-06-05 08:40:55 UTC (rev 9659)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2007-06-05 08:49:12 UTC (rev 9660)
@@ -167,7 +167,7 @@
self.editing = False
# Refresh display to switch from editing format to display format.
self.display = self.build_display(self.field.get_value(), self.editing)
- self._cursor = len(self.display)
+ self._cursor = 0
self._selection1 = self._selection2 = None
self.generateRefreshEvent()
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.