dabo Commit
Revision 6646
Date: 2011-07-01 15:49:52 -0700 (Fri, 01 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6646

Changed:
U   trunk/dabo/ui/uiwx/dRadioList.py

Log:
Fixed issue with unnecessary LostFocus event firing.

Diff:
Modified: trunk/dabo/ui/uiwx/dRadioList.py
===================================================================
--- trunk/dabo/ui/uiwx/dRadioList.py    2011-07-01 17:25:55 UTC (rev 6645)
+++ trunk/dabo/ui/uiwx/dRadioList.py    2011-07-01 22:49:52 UTC (rev 6646)
@@ -197,7 +197,7 @@
 
                @dabo.ui.deadCheck
                def checkForFocus(timeCalled):
-                       if self._lastGotFocusEvent != timeCalled:
+                       if timeCalled - self._lastGotFocusEvent > .01:
                                # No other button has gotten focus in the 
intervening time
                                # Don't raise event if parent form loses focus!
                                # Doing it on Windows platform raises global 
Python exception.
@@ -228,7 +228,7 @@
                control's Value.
                """
                for pos, itm in enumerate(self._items):
-                       itm.SetValue(pos==val)
+                       itm.SetValue(pos == val)
 
 
        def enableKey(self, itm, val=True):
@@ -561,7 +561,7 @@
                        _("""Specifies the string choices to display in the 
list.
                        -> List of strings. Read-write at runtime.
                        The list index becomes the PositionValue, and the string
-                       becomes the StringValue.""") )
+                       becomes the StringValue."""))
 
        Orientation = property(_getOrientation, _setOrientation, None,
                        _("""Specifies whether this is a vertical or horizontal 
RadioList.



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to