summaryrefslogtreecommitdiff
path: root/src/browser/Welcome.py
blob: 2ae8fce115cd5e87fe3038ec42be159b82d273c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.setLayout(self.vlayout)
        self.show()