[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8813 - in trunk/gnue-forms/src: . GFObjects
From: |
reinhard |
Subject: |
[gnue] r8813 - in trunk/gnue-forms/src: . GFObjects |
Date: |
Tue, 17 Oct 2006 08:36:16 -0500 (CDT) |
Author: reinhard
Date: 2006-10-17 08:36:15 -0500 (Tue, 17 Oct 2006)
New Revision: 8813
Modified:
trunk/gnue-forms/src/GFForm.py
trunk/gnue-forms/src/GFInstance.py
trunk/gnue-forms/src/GFObjects/GFTabStop.py
Log:
Moved logic to update the tip to the focus-in of the entry.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-17 13:22:47 UTC (rev 8812)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-17 13:36:15 UTC (rev 8813)
@@ -657,7 +657,6 @@
def update_status(self):
- self.update_tip()
self.update_record_status()
self.update_insert_status()
self.update_record_counter()
@@ -665,15 +664,8 @@
# -------------------------------------------------------------------------
- def update_tip(self):
+ def update_tip(self, tip):
- tip = ''
- if self._currentEntry:
- if self._currentEntry.get_option('tip'):
- tip = self._currentEntry.get_option('tip')
- elif hasattr(self._currentEntry, '_field') \
- and self._currentEntry._field.get_option('tip'):
- tip = self._currentEntry._field.get_option('tip')
self.__update_status(tip=tip)
# -------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py 2006-10-17 13:22:47 UTC (rev 8812)
+++ trunk/gnue-forms/src/GFInstance.py 2006-10-17 13:36:15 UTC (rev 8813)
@@ -445,7 +445,6 @@
event._form.move_focus(event.data)
event._form.update_record_status()
- event._form.update_tip()
finally:
event._form.beginEditing()
@@ -480,7 +479,6 @@
event._form.next_entry()
event._form.update_record_status()
- event._form.update_tip()
# ---------------------------------------------------------------------------
@@ -504,7 +502,6 @@
event._form.previous_entry()
event._form.update_record_status()
- event._form.update_tip()
# ---------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/GFObjects/GFTabStop.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFTabStop.py 2006-10-17 13:22:47 UTC (rev
8812)
+++ trunk/gnue-forms/src/GFObjects/GFTabStop.py 2006-10-17 13:36:15 UTC (rev
8813)
@@ -233,6 +233,15 @@
self.processTrigger('PRE-FOCUSIN')
self.processTrigger('POST-FOCUSIN')
+ # Update tip
+ if self.get_option('tip'):
+ tip = self.get_option('tip')
+ elif isinstance(self, GFFieldBound) and self._field.get_option('tip'):
+ tip = self._field.get_option('tip')
+ else:
+ tip = ''
+ self._form.update_tip(tip)
+
# -------------------------------------------------------------------------
def validate(self):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8813 - in trunk/gnue-forms/src: . GFObjects,
reinhard <=