Author: reinhard
Date: 2006-10-18 16:38:30 -0500 (Wed, 18 Oct 2006)
New Revision: 8858

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Removed a few obsolete lines.


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py        2006-10-18 
21:34:09 UTC (rev 8857)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py        2006-10-18 
21:38:30 UTC (rev 8858)
@@ -230,19 +230,14 @@
                 other = item._gnue_label_
 
             if other == label:
-                do_focus = (self._gfObject._form._currentEntry != 
self._gfObject)
-
                 # adjust the record number if necessary
                 lookup = item
                 if 'wxMac' in wx.PlatformInfo and self._gfObject.style == 
'dropdown':
                     lookup = lookup.GetParent()
 
-                count  = self.widgets.index(lookup)
-                adjust = count - self._gfObject._visibleIndex
-
                 # This replaces the label with the actual entry and sets the
                 # focus on the entry
-                self._ui_set_focus_(count)
+                self._ui_set_focus_(self.widgets.index(lookup))
 
         event.Skip()
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to