summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun
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/firstrun
parent16f19a225a922dd77f3f6c75c94194ebd229fc67 (diff)
move delay function to gui/utils
Diffstat (limited to 'src/leap/gui/firstrun')
-rw-r--r--src/leap/gui/firstrun/providerselect.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/leap/gui/firstrun/providerselect.py b/src/leap/gui/firstrun/providerselect.py
index 3ffc6ff6..a4be51a9 100644
--- a/src/leap/gui/firstrun/providerselect.py
+++ b/src/leap/gui/firstrun/providerselect.py
@@ -13,6 +13,7 @@ from leap.base import exceptions as baseexceptions
from leap.eip import exceptions as eipexceptions
from leap.gui.progress import InlineValidationPage
from leap.gui import styles
+from leap.gui.utils import delay
from leap.util.web import get_https_domain_and_port
from leap.gui.constants import APP_LOGO
@@ -20,20 +21,8 @@ from leap.gui.constants import APP_LOGO
logger = logging.getLogger(__name__)
-def delay(obj, method_str):
- # XXX check newer version in progress.py...
- """
- this is a hack to get responsiveness in the ui
- """
- QtCore.QTimer().singleShot(
- 10,
- lambda: QtCore.QMetaObject.invokeMethod(
- obj, method_str))
-
-
class SelectProviderPage(InlineValidationPage):
- #disableCheckButton = QtCore.pyqtSignal()
launchChecks = QtCore.pyqtSignal()
def __init__(self, parent=None, providers=None):
@@ -183,8 +172,6 @@ class SelectProviderPage(InlineValidationPage):
QtCore.QMetaObject.invokeMethod(
self, "showStepsFrame")
- # is this still needed?
- # XXX can I doo delay(self, "do_checks") ?
delay(self, "launch_checks")
def _do_checks(self):