30 self.labelAlignment = Qt.Alignment( |
30 self.labelAlignment = Qt.Alignment( |
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(SplashScreen, self).__init__(ericPic) |
35 super().__init__(ericPic) |
36 self.show() |
36 self.show() |
37 QApplication.flush() |
37 QApplication.flush() |
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 |
43 @param msg message to be shown (string) |
43 @param msg message to be shown (string) |
44 """ |
44 """ |
45 logging.debug(msg) |
45 logging.debug(msg) |
46 super(SplashScreen, self).showMessage( |
46 super().showMessage( |
47 msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) |
47 msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) |
48 QApplication.processEvents() |
48 QApplication.processEvents() |
49 |
49 |
50 def clearMessage(self): |
50 def clearMessage(self): |
51 """ |
51 """ |
52 Public method to clear the message shown. |
52 Public method to clear the message shown. |
53 """ |
53 """ |
54 super(SplashScreen, self).clearMessage() |
54 super().clearMessage() |
55 QApplication.processEvents() |
55 QApplication.processEvents() |
56 |
56 |
57 |
57 |
58 class NoneSplashScreen: |
58 class NoneSplashScreen: |
59 """ |
59 """ |