diff options
Diffstat (limited to 'src/browser')
-rw-r--r-- | src/browser/UserManual.py | 13 | ||||
-rw-r--r-- | src/browser/Welcome.py | 12 | ||||
-rw-r--r-- | src/browser/Welcome.py.bak | 20 |
3 files changed, 35 insertions, 10 deletions
diff --git a/src/browser/UserManual.py b/src/browser/UserManual.py index bcff4f97..3bcfbace 100644 --- a/src/browser/UserManual.py +++ b/src/browser/UserManual.py @@ -1,17 +1,20 @@ from PyQt4 import QtGui import webbrowser + class UserManual(QtGui.QWidget): """ This class creates Welcome page of eSim. """ + def __init__(self): QtGui.QWidget.__init__(self) - + self.vlayout = QtGui.QVBoxLayout() - + self.url = "../browser/pages/User-Manual/eSim.html" - self.test = webbrowser.open("../browser/pages/User-Manual/eSim.html",new=2) - + self.test = webbrowser.open( + "../browser/pages/User-Manual/eSim.html", new=2) + self.setLayout(self.vlayout) - self.show()
\ No newline at end of file + self.show() diff --git a/src/browser/Welcome.py b/src/browser/Welcome.py index 0f50e153..52e7d5bd 100644 --- a/src/browser/Welcome.py +++ b/src/browser/Welcome.py @@ -1,19 +1,21 @@ -from PyQt4 import QtGui,QtCore +from PyQt4 import QtGui, QtCore class Welcome(QtGui.QWidget): """ This class creates Welcome page of eSim. """ + def __init__(self): + """Sdf.""" QtGui.QWidget.__init__(self) self.vlayout = QtGui.QVBoxLayout() - + self.browser = QtGui.QTextBrowser() self.browser.setSource(QtCore.QUrl("../browser/pages/welcome.html")) self.browser.setOpenExternalLinks(True) - self.browser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) - - self.vlayout.addWidget(self.browser) + self.browser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) + + self.vlayout.addWidget(self.browser) self.setLayout(self.vlayout) self.show() diff --git a/src/browser/Welcome.py.bak b/src/browser/Welcome.py.bak new file mode 100644 index 00000000..5c0195e2 --- /dev/null +++ b/src/browser/Welcome.py.bak @@ -0,0 +1,20 @@ +from PyQt4 import QtGui, QtCore + + +class Welcome(QtGui.QWidget): + """ + This class creates Welcome page of eSim. + """ + + def __init__(self): + QtGui.QWidget.__init__(self) + self.vlayout = QtGui.QVBoxLayout() + + self.browser = QtGui.QTextBrowser() + self.browser.setSource(QtCore.QUrl("../browser/pages/welcome.html")) + self.browser.setOpenExternalLinks(True) + self.browser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) + + self.vlayout.addWidget(self.browser) + self.setLayout(self.vlayout) + self.show() |