blob: f31af29d4a962d4e345c61701697d372715e331d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
from PyQt4 import QtGui
import subprocess
import platform
import os
class UserManual(QtGui.QWidget):
"""
This class opens User-Manual page in new tab of web browser
when help button is clicked.
"""
def __init__(self):
QtGui.QWidget.__init__(self)
self.vlayout = QtGui.QVBoxLayout()
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()
|