[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9012 - trunk/gnue-forms/src/input/displayHandlers
From: |
johannes |
Subject: |
[gnue] r9012 - trunk/gnue-forms/src/input/displayHandlers |
Date: |
Thu, 9 Nov 2006 05:22:38 -0600 (CST) |
Author: johannes
Date: 2006-11-09 05:22:37 -0600 (Thu, 09 Nov 2006)
New Revision: 9012
Modified:
trunk/gnue-forms/src/input/displayHandlers/Cursor.py
Log:
Select from the cursor up to the end of the text for fk_source-fields
Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-11-09
11:01:18 UTC (rev 9011)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-11-09
11:22:37 UTC (rev 9012)
@@ -171,6 +171,9 @@
self.entry.uiWidget._ui_set_cursor_position_(index, cursor)
selection = self.getSelectionArea()
+ if selection is None and hasattr(self.field, 'fk_source'):
+ selection = (cursor, len(self.display))
+ print "fk-source-selection:", selection
if selection is not None:
selection1, selection2 = selection
@@ -536,7 +539,7 @@
@return: The selected area as a tuple or None if no selection
"""
- if self._selection1 == None:
+ if self._selection1 is None:
return None
else:
return ( min(self._selection1, self._selection2),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9012 - trunk/gnue-forms/src/input/displayHandlers,
johannes <=