changeset 249:c24715dcd2f6

browser_side: set the "workaround" timers to 5 ms instead of 10: - for register and login dialog - for input history cursor position
author souliane <souliane@mailoo.org>
date Fri, 08 Nov 2013 20:50:11 +0100
parents 8fdd20399a06
children 38e6211d36ca
files browser_side/panels.py browser_side/register.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Wed Oct 23 18:32:01 2013 +0200
+++ b/browser_side/panels.py	Fri Nov 08 20:50:11 2013 +0100
@@ -221,7 +221,7 @@
 
         def history_cb(text):
             self.setText(text)
-            Timer(10, lambda: self.setCursorPos(len(text)))
+            Timer(5, lambda: self.setCursorPos(len(text)))
 
         # if keycode == KEY_ENTER and not self.visible:
         if keycode == KEY_ENTER:
--- a/browser_side/register.py	Wed Oct 23 18:32:01 2013 +0200
+++ b/browser_side/register.py	Fri Nov 08 20:50:11 2013 +0100
@@ -160,13 +160,13 @@
             # the widget looses the focus. Using a timer with
             # any delay value > 0 would do the trick.
             if sender == self.login_box:
-                Timer(10, lambda: self.login_pass_box.setFocus(True))
+                Timer(5, lambda: self.login_pass_box.setFocus(True))
             elif sender == self.login_pass_box:
                 self.onLogin(None)
             elif sender == self.register_login_box:
-                Timer(10, lambda: self.email_box.setFocus(True))
+                Timer(5, lambda: self.email_box.setFocus(True))
             elif sender == self.email_box:
-                Timer(10, lambda: self.register_pass_box.setFocus(True))
+                Timer(5, lambda: self.register_pass_box.setFocus(True))
             elif sender == self.register_pass_box:
                 self.onRegister(None)