def __init__(self,qgisPrefix): p = qgisPrefix + "//data//icimod.png" pic = QPixmap(p) self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute) QSplashScreen.__init__(self, pic) self.show() QApplication.flush()
def __init__(self, pixmap, waitTime=0, textColor=Qt.black, *args, **kwargs): """ Initializes the class. :param pixmap: Current pixmap path. :type pixmap: unicode :param waitTime: wait time. :type waitTime: int :param \*args: Arguments. :type \*args: \* :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\* """ LOGGER.debug("> Initializing '{0}()' class.".format(self.__class__.__name__)) QSplashScreen.__init__(self, pixmap, *args, **kwargs) self.setWindowFlags(self.windowFlags() | Qt.WindowStaysOnTopHint) # --- Setting class attributes. --- self.__waitTime = None self.waitTime = waitTime self.__textColor = None self.textColor = textColor
def __init__(self, parent=None): from radiance import __version__ self.__version = __version__ self.parent = parent pixmap = QPixmap(QString(':/Radiance/splashscreen.png')) flags = Qt.WindowStaysOnTopHint QSplashScreen.__init__(self, pixmap, flags) self.setMask(pixmap.mask()) # Custom progress bar stylesheet progressbar_stylesheet = """ QProgressBar:horizontal { border: 1px solid black; background: white; padding: 1px; } QProgressBar::chunk:horizontal { background-color: qlineargradient(spread: pad, x1: 1, y1: 0.5, x2: 0, y2: 0.5, stop: 0 black, stop: 1 white); } """ # Place progress bar to bottom of splash screen. progressbar = QProgressBar(self) progressbar.setRange(0, 0) progressbar.setGeometry(10, self.height() - 20, self.width() - 20, 10) progressbar.setTextVisible(False) progressbar.setStyleSheet(progressbar_stylesheet) self.progressbar = progressbar self.show()
def __init__(self): """ Constructor """ ericPic = QPixmap(os.path.join(getConfig("ericPixDir"), "ericSplash.png")) self.labelAlignment = Qt.Alignment(Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute) QSplashScreen.__init__(self, ericPic) self.show() QApplication.flush()
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()
def __init__( self ): self.labelAlignment = \ Qt.Alignment( Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute ) QSplashScreen.__init__( self, PixmapCache().getPixmap( 'splash.png' ) ) self.show() QApplication.flush() return
def __init__(self): self.labelAlignment = \ Qt.Alignment( Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute ) QSplashScreen.__init__(self, None, PixmapCache().getPixmap('splash.png')) self.show() QApplication.flush() return
def __init__(self, parent=None, pixmap=None, textRect=None, **kwargs): QSplashScreen.__init__(self, parent, **kwargs) self.__textRect = textRect self.__message = "" self.__color = Qt.black self.__alignment = Qt.AlignLeft if pixmap is None: pixmap = QPixmap() self.setPixmap(pixmap) self.setAutoFillBackground(False) # Also set FramelesWindowHint (if not already set) self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)
def __init__(self, parent=None, pixmap=None, textRect=None, **kwargs): QSplashScreen.__init__(self, parent, **kwargs) self.__textRect = textRect self.__message = "" self.__color = Qt.black self.__alignment = Qt.AlignLeft if pixmap is None: pixmap = QPixmap() self.setPixmap(pixmap) self.setAutoFillBackground(False) # Also set FramelesWindowHint (if not already set) self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)
def __init__( self ): self.labelAlignment = \ Qt.Alignment( Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute ) splashPixmap = PixmapCache().getPixmap( 'splash.png' ) painter = QPainter( splashPixmap ) font = QFont( "Arial" ) font.setPointSize( 12 ) painter.setFont( font ) painter.drawText( QPoint( 20, 130 ), "CODIMENSION v" + str( cdmverspec.__version__ ) ) QSplashScreen.__init__( self, None, splashPixmap ) self.show() QApplication.flush() return
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"
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"
def __init__(self, pixmap, windowFlag, versionNumber): QSplashScreen.__init__(self, pixmap, windowFlag) self.versionNumber = versionNumber
def __init__(self): QSplashScreen.__init__(self, QPixmap('media/splash.png'), Qt.WindowStaysOnTopHint) self.show()
def __init__(self, pixmap, windowFlag, versionNumber): QSplashScreen.__init__(self, pixmap, windowFlag) self.versionNumber = versionNumber
def __init__(self): QSplashScreen.__init__(self) self.setupUi()
def __init__(self): QSplashScreen.__init__(self) self.setupUi()