summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-12-08 18:44:45 +0100
committerKali Kaneko <kali@leap.se>2017-12-08 19:46:25 +0100
commit40805b3d9e527368c826a792d15ed334b6f3b8b7 (patch)
tree3030640ad394707c391f8af5be53a0d9656f28fe /src/leap/bitmask/gui
parent4be4b989f22355cc548f7afad76503b3394b5744 (diff)
[style] pep8
Diffstat (limited to 'src/leap/bitmask/gui')
-rw-r--r--src/leap/bitmask/gui/app.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py
index 2edb5bfd..03d5b5c4 100644
--- a/src/leap/bitmask/gui/app.py
+++ b/src/leap/bitmask/gui/app.py
@@ -35,6 +35,8 @@ from leap.bitmask.core.launcher import run_bitmaskd, pid
from leap.bitmask.gui import app_rc
from leap.common.config import get_path_prefix
+from .systray import WithTrayIcon
+
if platform.system() == 'Windows':
from multiprocessing import freeze_support
from PySide import QtCore, QtGui
@@ -59,9 +61,6 @@ else:
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
from PyQt5.QtWebEngineWidgets import QWebEngineSettings as QWebSettings
-from .systray import WithTrayIcon
-
-
IS_WIN = platform.system() == "Windows"
DEBUG = os.environ.get("DEBUG", False)
@@ -73,7 +72,6 @@ bitmaskd = None
browser = None
-
class BrowserWindow(QWebView, WithTrayIcon):
"""
This qt-webkit window exposes a couple of callable objects through the
@@ -86,6 +84,7 @@ class BrowserWindow(QWebView, WithTrayIcon):
This BrowserWindow assumes that the backend is already running, since it is
going to look for the authtoken in the configuration folder.
"""
+
def __init__(self, *args, **kw):
url = kw.pop('url', None)
first = False
@@ -128,7 +127,7 @@ class BrowserWindow(QWebView, WithTrayIcon):
try:
if os.environ.get('DEBUG'):
self.settings().setAttribute(
- QWebSettings.DeveloperExtrasEnabled, True)
+ QWebSettings.DeveloperExtrasEnabled, True)
except Exception:
pass
@@ -243,7 +242,7 @@ def launch_gui():
timer.start(500)
browser.show()
-
+
sys.exit(qApp.exec_())