diff options
author | Rahul P | 2020-03-04 17:01:11 +0530 |
---|---|---|
committer | GitHub | 2020-03-04 17:01:11 +0530 |
commit | 8ffe81b36caa259151978de0434e4e0c5c32d217 (patch) | |
tree | 32202454d13dfabbf6556e98987f2a9632619ea9 /src/browser/UserManual.py | |
parent | e40317e709c220176fc5b7edf23d4434504335b0 (diff) | |
parent | 13f3bcfda9416624cebbf5705de398e8efcad344 (diff) | |
download | eSim-8ffe81b36caa259151978de0434e4e0c5c32d217.tar.gz eSim-8ffe81b36caa259151978de0434e4e0c5c32d217.tar.bz2 eSim-8ffe81b36caa259151978de0434e4e0c5c32d217.zip |
Merge pull request #132 from rahulp13/master
major changes
Diffstat (limited to 'src/browser/UserManual.py')
-rw-r--r-- | src/browser/UserManual.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/browser/UserManual.py b/src/browser/UserManual.py index 6f09190b..f31af29d 100644 --- a/src/browser/UserManual.py +++ b/src/browser/UserManual.py @@ -1,5 +1,7 @@ from PyQt4 import QtGui -import webbrowser +import subprocess +import platform +import os class UserManual(QtGui.QWidget): @@ -13,9 +15,14 @@ class UserManual(QtGui.QWidget): self.vlayout = QtGui.QVBoxLayout() - self.url = "../browser/pages/User-Manual/eSim.html" - self.test = webbrowser.open( - "../browser/pages/User-Manual/eSim.html", new=2) + file = os.path.realpath( + 'library/browser/User-Manual/eSim_Manual_2019_Dec_31.pdf' + ) + + if 'Win' in platform.system(): + os.startfile(file) + else: + subprocess.Popen(['xpdf.real', file], shell=False) self.setLayout(self.vlayout) self.show() |