Example #1
0
 def __init__(self, develop=False):
     self.drawn_once = False
     self.develop = develop
     pmap = QIcon(I('library.png',
                    allow_user_override=False)).pixmap(512, 512)
     QSplashScreen.__init__(self, pmap)
     self.setWindowTitle(__appname__)
Example #2
0
 def inicio_splash(self, develop="false"):
     self.drawn_once = False
     self.develop = develop
     self.title_font = f = QFont()
     f.setPointSize(self.TITLE_SIZE)
     f.setBold(True)
     self.title_height = QFontMetrics(f).lineSpacing()
     self.body_font = f = QFont()
     f.setPointSize(self.BODY_SIZE)
     self.line_height = QFontMetrics(f).lineSpacing()
     self.total_height = max(self.LOGO_SIZE,
                             self.title_height + 3 * self.line_height)
     self.num_font = f = QFont()
     f.setPixelSize(self.total_height)
     f.setItalic(True), f.setBold(True)
     f = QFontMetrics(f)
     self.num_ch = str(max(3, numeric_version[0]))
     self.footer_font = f = QFont()
     f.setPointSize(self.FOOTER_SIZE)
     f.setItalic(True)
     self.dpr = QApplication.instance().devicePixelRatio()
     self.pmap = QPixmap(I('library.png', allow_user_override=False))
     self.pmap.setDevicePixelRatio(self.dpr)
     self.pmap = self.pmap.scaled(int(self.dpr * self.LOGO_SIZE),
                                  int(self.dpr * self.LOGO_SIZE),
                                  transformMode=Qt.SmoothTransformation)
     self.light_brush = QBrush(QColor('#F6F3E9'))
     self.dark_brush = QBrush(QColor('#39322B'))
     pmap = QPixmap(int(self.WIDTH * self.dpr), int(self.WIDTH * self.dpr))
     pmap.setDevicePixelRatio(self.dpr)
     pmap.fill(Qt.transparent)
     QSplashScreen.__init__(self, pmap)
     self.setWindowTitle('Sistema Biblioteca Nacional')
Example #3
0
 def __init__(self, develop=False):
     self.drawn_once = False
     self.develop = develop
     self.title_font = f = QFont()
     f.setPointSize(self.TITLE_SIZE)
     f.setBold(True)
     self.title_height = QFontMetrics(f).lineSpacing() + 2
     self.body_font = f = QFont()
     f.setPointSize(self.BODY_SIZE)
     self.line_height = QFontMetrics(f).lineSpacing()
     self.total_height = max(self.LOGO_SIZE, self.title_height + 3 * self.line_height)
     self.num_font = f = QFont()
     f.setPixelSize(self.total_height)
     f.setItalic(True), f.setBold(True)
     f = QFontMetrics(f)
     self.num_ch = str(max(3, numeric_version[0]))
     self.footer_font = f = QFont()
     f.setPointSize(self.FOOTER_SIZE)
     f.setItalic(True)
     self.dpr = QApplication.instance().devicePixelRatio()
     self.pmap = QPixmap(I('library.png', allow_user_override=False))
     self.pmap.setDevicePixelRatio(self.dpr)
     self.pmap = self.pmap.scaled(int(self.dpr * self.LOGO_SIZE), int(self.dpr * self.LOGO_SIZE), transformMode=Qt.SmoothTransformation)
     self.light_brush = QBrush(QColor('#F6F3E9'))
     self.dark_brush = QBrush(QColor('#39322B'))
     pmap = QPixmap(int(self.WIDTH * self.dpr), int(self.WIDTH * self.dpr))
     pmap.setDevicePixelRatio(self.dpr)
     pmap.fill(Qt.transparent)
     QSplashScreen.__init__(self, pmap)
     self.setWindowTitle(__appname__)
Example #4
0
    def __init__(self, image):
        self.isRunning = True
        self.image = image
        self.frame = QPixmap(image.rect().size() + QSize(0, 20))
        self.frame.fill(Qt.transparent)
        QSplashScreen.__init__(self, self.frame,
                               QtCore.Qt.WindowStaysOnTopHint)

        # COMPARISON BETWEEN EASING CURVES
        easingCurve = QEasingCurve()
        easingCurve.setCustomType(self.funkyEasingFunc)
        self.anim = LoadingDotsWidget(None,
                                      ypos=110,
                                      xsize=self.image.rect().size().width() +
                                      10,
                                      sep=40,
                                      offsetx=0,
                                      speed=100,
                                      easingcurve=easingCurve,
                                      amount=3,
                                      loopingOn=3)
        self.anim.s_externalRepaint.connect(self.update)
        self.frameSize = self.rect().size() + QSize(0, 20)
Example #5
0
 def __init__(self):
     self.drawn_once = False
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
     self.setWindowTitle(__appname__)
Example #6
0
 def __init__(self):
     self.drawn_once = False
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
     self.setWindowTitle(__appname__)
Example #7
0
 def __init__(self):
     self.drawn_once = False
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
Example #8
0
 def __init__(self):
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
Example #9
0
 def __init__(self):
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
Example #10
0
 def __init__(self):
     self.drawn_once = False
     QSplashScreen.__init__(self, QPixmap(I('library.png')))
Example #11
0
 def __init__(self, develop=False):
     self.drawn_once = False
     self.develop = develop
     pmap = QIcon(I('library.png', allow_user_override=False)).pixmap(512, 512)
     QSplashScreen.__init__(self, pmap)
     self.setWindowTitle(__appname__)