summaryrefslogtreecommitdiff
path: root/src/browser/UserManual.py
diff options
context:
space:
mode:
authorfahim2015-08-03 18:21:02 +0530
committerfahim2015-08-03 18:21:02 +0530
commitac7e0e4bfc466af13cf6e600e08d8c055db31c3f (patch)
tree38a51fbfe18023623b4437b456f44d51a2c472f8 /src/browser/UserManual.py
parenta9e808fd75d09978d159678cf9ae39e38d8dbe37 (diff)
downloadeSim-ac7e0e4bfc466af13cf6e600e08d8c055db31c3f.tar.gz
eSim-ac7e0e4bfc466af13cf6e600e08d8c055db31c3f.tar.bz2
eSim-ac7e0e4bfc466af13cf6e600e08d8c055db31c3f.zip
Subject: Changes the way of opening user manual.
Description: User manual opens in firefox instead of dock area.
Diffstat (limited to 'src/browser/UserManual.py')
-rw-r--r--src/browser/UserManual.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/browser/UserManual.py b/src/browser/UserManual.py
index fd0d94d9..72733a50 100644
--- a/src/browser/UserManual.py
+++ b/src/browser/UserManual.py
@@ -1,5 +1,5 @@
-from PyQt4 import QtGui,QtCore
-
+from PyQt4 import QtGui, QtCore
+import webbrowser
class UserManual(QtGui.QWidget):
"""
@@ -7,14 +7,18 @@ class UserManual(QtGui.QWidget):
"""
def __init__(self):
QtGui.QWidget.__init__(self)
+
self.vlayout = QtGui.QVBoxLayout()
+ """
self.browser = QtGui.QTextBrowser()
self.browser.setSource(QtCore.QUrl("../browser/pages/User-Manual/eSim.html"))
self.browser.setOpenExternalLinks(True)
- #self.setSource(QtCore.QUrl("../browser/pages/welcome.html"))
- #self.setOpenExternalLinks(True)
+ """
- self.vlayout.addWidget(self.browser)
+ self.url = "../browser/pages/User-Manual/eSim.html"
+ self.test = webbrowser.open("../browser/pages/User-Manual/eSim.html",new=2)
+
+ #self.vlayout.addWidget(self.browser)
self.setLayout(self.vlayout)
self.show() \ No newline at end of file