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 = Qt.Alignment( |
31 Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute) |
31 Qt.AlignmentFlag.AlignBottom | |
|
32 Qt.AlignmentFlag.AlignRight | |
|
33 Qt.AlignmentFlag.AlignAbsolute |
|
34 ) |
32 super(SplashScreen, self).__init__(ericPic) |
35 super(SplashScreen, self).__init__(ericPic) |
33 self.show() |
36 self.show() |
34 QApplication.flush() |
37 QApplication.flush() |
35 |
38 |
36 def showMessage(self, msg): |
39 def showMessage(self, msg): |
39 |
42 |
40 @param msg message to be shown (string) |
43 @param msg message to be shown (string) |
41 """ |
44 """ |
42 logging.debug(msg) |
45 logging.debug(msg) |
43 super(SplashScreen, self).showMessage( |
46 super(SplashScreen, self).showMessage( |
44 msg, self.labelAlignment, QColor(Qt.white)) |
47 msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) |
45 QApplication.processEvents() |
48 QApplication.processEvents() |
46 |
49 |
47 def clearMessage(self): |
50 def clearMessage(self): |
48 """ |
51 """ |
49 Public method to clear the message shown. |
52 Public method to clear the message shown. |