5 |
5 |
6 """ |
6 """ |
7 Module implementing a splashscreen for eric. |
7 Module implementing a splashscreen for eric. |
8 """ |
8 """ |
9 |
9 |
10 import logging |
|
11 import os.path |
10 import os.path |
12 |
11 |
13 from PyQt6.QtCore import Qt |
12 from PyQt6.QtCore import Qt |
14 from PyQt6.QtGui import QColor, QPixmap |
13 from PyQt6.QtGui import QColor, QPixmap |
15 from PyQt6.QtWidgets import QApplication, QSplashScreen |
14 from PyQt6.QtWidgets import QApplication, QSplashScreen |
41 Public method to show a message in the bottom part of the splashscreen. |
40 Public method to show a message in the bottom part of the splashscreen. |
42 |
41 |
43 @param msg message to be shown |
42 @param msg message to be shown |
44 @type str |
43 @type str |
45 """ |
44 """ |
46 logging.debug(msg) |
|
47 super().showMessage(msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) |
45 super().showMessage(msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) |
48 QApplication.processEvents() |
46 QApplication.processEvents() |
49 |
47 |
50 def clearMessage(self): |
48 def clearMessage(self): |
51 """ |
49 """ |