Example #1
0
 def __init__(self):
     """
     Constructor
     """
     QSplashScreen.__init__(self, QPixmap(':/images/splash.png'),
                            Qt.WindowStaysOnTopHint)
     QApplication.flush()
Example #2
0
 def __init__(self):
     """
     Constructor
     """
     pixmap = QPixmap(':/images/splash.png')
     self.labelAlignment = Qt.Alignment(
         Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute)
     QSplashScreen.__init__(self, pixmap, Qt.WindowStaysOnTopHint)
     QApplication.flush()
Example #3
0
 def __init__(self):
     """
     Constructor
     """
     ericPic = QPixmap(os.path.join(getConfig("ericPixDir"), "ericSplash.png"))
     self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute)
     super(SplashScreen, self).__init__(ericPic)
     self.show()
     QApplication.flush()
 def __init__(self, picfile):
     pixmap = QPixmap(picfile)
     # , Qt.WindowStaysOnTopHint)
     super(SplashScreen, self).__init__(pixmap)
     # self.setMask(splash_pix.mask())
     # self.raise_()
     self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignHCenter
                                        | Qt.AlignAbsolute)
     self.show()
     QApplication.flush()
Example #5
0
 def __statusMonitorData(self, statusList):
     """
     Private method to receive the status monitor status.
     
     It simply reemits the received status list.
     
     @param statusList list of status records (list of strings)
     """
     self.vcsStatusMonitorData.emit(statusList)
     QApplication.flush()
Example #6
0
 def __statusMonitorData(self, statusList):
     """
     Private method to receive the status monitor status.
     
     It simply reemits the received status list.
     
     @param statusList list of status records (list of strings)
     """
     self.vcsStatusMonitorData.emit(statusList)
     QApplication.flush()
Example #7
0
 def __statusMonitorStatus(self, status, statusMsg):
     """
     Private method to receive the status monitor status.
     
     It simply reemits the received status.
     
     @param status status of the monitoring thread (string, ok, nok or off)
     @param statusMsg explanotory text for the signaled status (string)
     """
     self.vcsStatusMonitorStatus.emit(status, statusMsg)
     QApplication.flush()
Example #8
0
 def __init__(self):
     """
     Constructor
     """
     img_path = os.path.join(os.getcwd(), 'gui', 'images', 'splash.png')
     pixmap = QPixmap(img_path)
     self.labelAlignment = Qt.Alignment(
         Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute)
     QSplashScreen.__init__(self, pixmap)
     self.show()
     QApplication.flush()
Example #9
0
 def __statusMonitorStatus(self, status, statusMsg):
     """
     Private method to receive the status monitor status.
     
     It simply reemits the received status.
     
     @param status status of the monitoring thread (string, ok, nok or off)
     @param statusMsg explanotory text for the signaled status (string)
     """
     self.vcsStatusMonitorStatus.emit(status, statusMsg)
     QApplication.flush()
Example #10
0
 def __init__(self):
     """
     Constructor
     """
     ericPic = QPixmap(
         os.path.join(getConfig('ericPixDir'), 'ericSplash.png'))
     self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight
                                        | Qt.AlignAbsolute)
     super(SplashScreen, self).__init__(ericPic)
     self.show()
     QApplication.flush()
Example #11
0
 def __init__(self):
     """
     Constructor
     """
     img_path = os.path.join(os.getcwd(), 'gui', 'images', 'splash.png')
     pixmap = QPixmap(img_path)
     self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight
                                        | Qt.AlignAbsolute)
     QSplashScreen.__init__(self, pixmap)
     self.show()
     QApplication.flush()
Example #12
0
 def __statusMonitorInfo(self, info):
     """
     Private slot to receive the status monitor info message.
     
     It simply re-emits the received info message.
     
     @param info received info message
     @type str
     """
     self.vcsStatusMonitorInfo.emit(info)
     QApplication.flush()
Example #13
0
 def __statusMonitorStatus(self, status, statusMsg):
     """
     Private slot to receive the status monitor status.
     
     It simply re-emits the received status.
     
     @param status status of the monitoring thread
     @type str (one of ok, nok or off)
     @param statusMsg explanotory text for the signaled status
     @type str
     """
     self.vcsStatusMonitorStatus.emit(status, statusMsg)
     QApplication.flush()
Example #14
0
    def mousePressEvent(self, ev):
        if ev.button() != Qt.LeftButton:
            ev.ignore()
            return

        if self.hitButton(ev.pos()):
            self.setDown(True)
            self.pressed = True
            self.repaint()
            QApplication.flush()
            # self.emitPressed()
            ev.accept()
        elif self.hitText(ev.pos()):
            self.sig_text_clicked.emit(self.objectName())
        else:
            ev.ignore()
Example #15
0
 def __init__(self):
     """
     Constructor
     """
     ericPic = QPixmap(
         os.path.join(getConfig('ericPixDir'), 'pymakrSplash.png'))
     self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight
                                        | Qt.AlignAbsolute)
     super(SplashScreen, self).__init__(ericPic)
     lblVersion = QLabel(self)
     lblVersion.setText(UI.Info.Version)
     lblVersion.adjustSize()
     lblVersion.setStyleSheet("QLabel { color : white; }")
     lblVersion.setAttribute(Qt.WA_TranslucentBackground)
     lblVersion.move(425 - lblVersion.width(), 195)
     self.show()
     self.raise_()  # needed for mac
     QApplication.flush()
Example #16
0
 def __init__(self):
     """
     **Constructor**
     
     [description]
     """
     QSplashScreen.__init__(
         self, QPixmap(":/Images/Images/logo_with_uni_logo.png"))
     lblVersion = QLabel(self)
     lblVersion.setText(
         "RepTate Version %s %s<br><small>\u00A9 Jorge Ramírez, Universidad Politécnica de Madrid (2017-2020)<br>\u00A9 Victor Boudara, University of Leeds (2017-2020)</small>"
         % (Version.VERSION, Version.DATE))
     font = self.font()
     font.setPixelSize(11)
     font.setWeight(QFont.Bold)
     self.setFont(font)
     lblVersion.adjustSize()
     #lblVersion.setStyleSheet("QLabel { color : white; }")
     #lblVersion.move(425 - lblVersion.width(), 195)
     QApplication.flush()
Example #17
0
    def __init__(self):
        """**Constructor**"""
        QSplashScreen.__init__(
            self, QPixmap(":/Images/Images/logo_with_uni_logo.png"))
        lblVersion = QLabel(self)

        verdata = RepTate._version.get_versions()
        version = verdata["version"].split("+")[0]
        date = verdata["date"].split("T")[0]
        build = verdata["version"]

        lblVersion.setText(
            "RepTate %s %s (build %s)<br><small>\u00A9 Jorge Ramírez, Universidad Politécnica de Madrid<br>\u00A9 Victor Boudara, University of Leeds</small><br>(2017-2020)<br><a href=\"https://dx.doi.org/10.1122/8.0000002\">Cite RepTate</a>"
            % (version, date, build))
        font = self.font()
        font.setPixelSize(11)
        font.setWeight(QFont.Bold)
        self.setFont(font)
        lblVersion.adjustSize()
        # lblVersion.setStyleSheet("QLabel { color : white; }")
        # lblVersion.move(425 - lblVersion.width(), 195)
        QApplication.flush()
Example #18
0
 def repaint(self):
     QWidget.repaint(self)
     QApplication.flush()