summaryrefslogtreecommitdiff
path: root/src/leap/gui/progress.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-28 02:03:22 +0900
committerkali <kali@leap.se>2012-11-28 02:03:22 +0900
commiteec567a0a26edddb30b15ea4ef67f042c160d5ba (patch)
treeaf102710429fa31d1542e579af75a68a5798e694 /src/leap/gui/progress.py
parent16f19a225a922dd77f3f6c75c94194ebd229fc67 (diff)
move delay function to gui/utils
Diffstat (limited to 'src/leap/gui/progress.py')
-rw-r--r--src/leap/gui/progress.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/leap/gui/progress.py b/src/leap/gui/progress.py
index 6f13a1ac..64b87b2c 100644
--- a/src/leap/gui/progress.py
+++ b/src/leap/gui/progress.py
@@ -24,24 +24,6 @@ ICON_WAITING = ":/images/Emblem-question.png"
logger = logging.getLogger(__name__)
-# XXX import this from threads
-def delay(obj, method_str=None, call_args=None):
- """
- this is a hack to get responsiveness in the ui
- """
- if callable(obj) and not method_str:
- QtCore.QTimer().singleShot(
- 50,
- lambda: obj())
- return
-
- if method_str:
- QtCore.QTimer().singleShot(
- 50,
- lambda: QtCore.QMetaObject.invokeMethod(
- obj, method_str))
-
-
class ImgWidget(QtGui.QWidget):
# XXX move to widgets