eric7/UI/SplashScreen.py

branch
eric7
changeset 8318
962bce857696
parent 8314
e3642a6a1e71
child 8881
54e42bc2437a
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
8 """ 8 """
9 9
10 import os.path 10 import os.path
11 import logging 11 import logging
12 12
13 from PyQt5.QtCore import Qt 13 from PyQt6.QtCore import Qt
14 from PyQt5.QtGui import QPixmap, QColor 14 from PyQt6.QtGui import QPixmap, QColor
15 from PyQt5.QtWidgets import QApplication, QSplashScreen 15 from PyQt6.QtWidgets import QApplication, QSplashScreen
16 16
17 from eric7config import getConfig 17 from eric7config import getConfig
18 18
19 19
20 class SplashScreen(QSplashScreen): 20 class SplashScreen(QSplashScreen):
25 """ 25 """
26 Constructor 26 Constructor
27 """ 27 """
28 ericPic = QPixmap( 28 ericPic = QPixmap(
29 os.path.join(getConfig('ericPixDir'), 'ericSplash.png')) 29 os.path.join(getConfig('ericPixDir'), 'ericSplash.png'))
30 self.labelAlignment = Qt.Alignment( 30 self.labelAlignment = (
31 Qt.AlignmentFlag.AlignBottom | 31 Qt.AlignmentFlag.AlignBottom |
32 Qt.AlignmentFlag.AlignRight | 32 Qt.AlignmentFlag.AlignRight |
33 Qt.AlignmentFlag.AlignAbsolute 33 Qt.AlignmentFlag.AlignAbsolute
34 ) 34 )
35 super().__init__(ericPic) 35 super().__init__(ericPic)
36 self.show() 36 self.show()
37 QApplication.flush() 37 QApplication.processEvents()
38 38
39 def showMessage(self, msg): 39 def showMessage(self, msg):
40 """ 40 """
41 Public method to show a message in the bottom part of the splashscreen. 41 Public method to show a message in the bottom part of the splashscreen.
42 42

eric ide

mercurial