Ejemplo n.º 1
0
    def createTopLayout(self):
        top_layout = QHBoxLayout()

        image_label = QLabel()
        image = resourceImage("splash.jpg")
        image_label.setPixmap(image.scaled(200, 240, Qt.KeepAspectRatio))

        top_layout.addWidget(image_label)

        top_layout.addLayout(self.createInfoLayout(), 1)

        return top_layout
Ejemplo n.º 2
0
    def createTopLayout(self):
        top_layout = QHBoxLayout()

        image_label = QLabel()
        image = resourceImage("splash.png")
        image_label.setPixmap(image.scaled(200, 240, Qt.KeepAspectRatio))

        top_layout.addWidget(image_label)

        top_layout.addLayout(self.createInfoLayout(), 1)

        return top_layout
Ejemplo n.º 3
0
    def __init__(self, version_string="Version string"):
        QSplashScreen.__init__(self)
        self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.SplashScreen)

        splash_width = 720
        splash_height = 400

        desktop = QApplication.desktop()
        screen = desktop.screenGeometry(desktop.primaryScreen()).size()

        screen_width, screen_height = screen.width(), screen.height()
        x = screen_width / 2 - splash_width / 2
        y = screen_height / 2 - splash_height / 2
        self.setGeometry(x, y, splash_width, splash_height)

        self.splash_image = resourceImage("splash.png")

        self.ert = "ERT"
        self.ert_title = "Ensemble based Reservoir Tool"
        self.version = version_string
        self.timestamp = "Timestamp string"
Ejemplo n.º 4
0
    def __init__(self):
        QSplashScreen.__init__(self)
        self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.SplashScreen)

        splash_width = 720
        splash_height = 400

        desktop = QApplication.desktop()
        screen = desktop.screenGeometry(desktop.primaryScreen()).size()

        screen_width, screen_height = screen.width(), screen.height()
        x = screen_width / 2 - splash_width / 2
        y = screen_height / 2 - splash_height / 2
        self.setGeometry(x, y, splash_width, splash_height)


        self.splash_image = resourceImage("splash.jpg")

        self.ert = "ERT"
        self.ert_title = "Ensemble based Reservoir Tool"
        self.version = "Version string"
        self.timestamp = "Timestamp string"
        self.copyright = u"Copyright \u00A9 2017 Statoil ASA, Norway"