Mercurial > libervia-web
comparison browser_side/list_manager.py @ 422:20c508f9b32a
browser side: fixed bad use of Timer
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 26 Mar 2014 17:34:01 +0100 |
parents | 63f8469b4ad3 |
children | d52f529a6d42 |
comparison
equal
deleted
inserted
replaced
421:39b07289ff42 | 422:20c508f9b32a |
---|---|
308 sender.remove_btn.setVisible(True) | 308 sender.remove_btn.setVisible(True) |
309 | 309 |
310 def onMouseLeave(self, sender): | 310 def onMouseLeave(self, sender): |
311 """Mouse leaves the area of a DragAutoCompleteTextBox.""" | 311 """Mouse leaves the area of a DragAutoCompleteTextBox.""" |
312 if hasattr(sender, "remove_btn"): | 312 if hasattr(sender, "remove_btn"): |
313 Timer(1500, lambda: sender.remove_btn.setVisible(False)) | 313 Timer(1500, lambda timer: sender.remove_btn.setVisible(False)) |
314 | 314 |
315 def onFocus(self, sender): | 315 def onFocus(self, sender): |
316 sender.setSelectionRange(0, len(self.getText())) | 316 sender.setSelectionRange(0, len(self.getText())) |
317 self.event_cbs["focus"](sender) | 317 self.event_cbs["focus"](sender) |
318 | 318 |