summaryrefslogtreecommitdiff
path: root/src/leap/gui/constants.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-09 11:21:40 +0900
committerkali <kali@leap.se>2012-11-09 11:21:40 +0900
commit8118056a244ca74d16380ad26a70e3da40e7e401 (patch)
tree4363948d180a667a545807b99b2d3199e30b5950 /src/leap/gui/constants.py
parentb84007d8fec8c949ba4ac1d26695c710a210d797 (diff)
connect page merged into regvalidation.
Flow nearly working with fake provider, except for authentication.
Diffstat (limited to 'src/leap/gui/constants.py')
-rw-r--r--src/leap/gui/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/gui/constants.py b/src/leap/gui/constants.py
index c874cbc9..277f3540 100644
--- a/src/leap/gui/constants.py
+++ b/src/leap/gui/constants.py
@@ -1,3 +1,5 @@
+import time
+
APP_LOGO = ':/images/leap-color-small.png'
# bare is the username portion of a JID
@@ -6,3 +8,6 @@ APP_LOGO = ':/images/leap-color-small.png'
BARE_USERNAME_REGEX = r"^[A-Za-z\d_]+$"
FULL_USERNAME_REGEX = r"^[A-Za-z\d_@.-]+$"
+
+GUI_PAUSE_FOR_USER_SECONDS = 1
+pause_for_user = lambda: time.sleep(GUI_PAUSE_FOR_USER_SECONDS)