summaryrefslogtreecommitdiff
path: root/src/browser/Welcome.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser/Welcome.py')
-rw-r--r--src/browser/Welcome.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/browser/Welcome.py b/src/browser/Welcome.py
index 69584f10..f864a21f 100644
--- a/src/browser/Welcome.py
+++ b/src/browser/Welcome.py
@@ -1,19 +1,24 @@
-from PyQt4 import QtGui, QtCore
+from PyQt5 import QtCore, QtWidgets
+import os
-class Welcome(QtGui.QWidget):
+class Welcome(QtWidgets.QWidget):
"""
This class contains content of dock area part of initial esim Window.
It creates Welcome page of eSim.
"""
def __init__(self):
- QtGui.QWidget.__init__(self)
- self.vlayout = QtGui.QVBoxLayout()
+ QtWidgets.QWidget.__init__(self)
+ self.vlayout = QtWidgets.QVBoxLayout()
+ self.browser = QtWidgets.QTextBrowser()
+
+ init_path = '../../'
+ if os.name == 'nt':
+ init_path = ''
- self.browser = QtGui.QTextBrowser()
self.browser.setSource(QtCore.QUrl(
- "library/browser/welcome.html")
+ init_path + "library/browser/welcome.html")
)
self.browser.setOpenExternalLinks(True)
self.browser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)