예제 #1
0
 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()
예제 #2
0
	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
예제 #3
0
    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()
예제 #4
0
 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()
예제 #5
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()
예제 #6
0
    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
예제 #7
0
    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
예제 #8
0
    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)
예제 #9
0
    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)
예제 #10
0
    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
예제 #11
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"
예제 #12
0
파일: ert_splash.py 프로젝트: berland/ert
    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"
예제 #13
0
파일: gui.py 프로젝트: kzwkt/dff
 def __init__(self, pixmap, windowFlag, versionNumber):
     QSplashScreen.__init__(self, pixmap, windowFlag)
     self.versionNumber = versionNumber
예제 #14
0
 def __init__(self):
     QSplashScreen.__init__(self, QPixmap('media/splash.png'), Qt.WindowStaysOnTopHint)
     self.show()
예제 #15
0
파일: gui.py 프로젝트: halbbob/dff
 def __init__(self, pixmap, windowFlag, versionNumber):
    QSplashScreen.__init__(self, pixmap, windowFlag)
    self.versionNumber = versionNumber
예제 #16
0
파일: SplashScreen.py 프로젝트: einaru/luma
 def __init__(self):
     QSplashScreen.__init__(self)
     self.setupUi()
예제 #17
0
 def __init__(self):
     QSplashScreen.__init__(self)
     self.setupUi()