diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/UI/SplashScreen.py --- a/src/eric7/UI/SplashScreen.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/UI/SplashScreen.py Wed Jul 13 14:55:47 2022 +0200 @@ -21,32 +21,31 @@ """ Class implementing a splashscreen for eric. """ + def __init__(self): """ Constructor """ - ericPic = QPixmap( - os.path.join(getConfig('ericPixDir'), 'ericSplash.png')) + ericPic = QPixmap(os.path.join(getConfig("ericPixDir"), "ericSplash.png")) self.labelAlignment = ( - Qt.AlignmentFlag.AlignBottom | - Qt.AlignmentFlag.AlignRight | - Qt.AlignmentFlag.AlignAbsolute + Qt.AlignmentFlag.AlignBottom + | Qt.AlignmentFlag.AlignRight + | Qt.AlignmentFlag.AlignAbsolute ) super().__init__(ericPic) self.show() QApplication.processEvents() - + def showMessage(self, msg): """ Public method to show a message in the bottom part of the splashscreen. - + @param msg message to be shown (string) """ logging.debug(msg) - super().showMessage( - msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) + super().showMessage(msg, self.labelAlignment, QColor(Qt.GlobalColor.white)) QApplication.processEvents() - + def clearMessage(self): """ Public method to clear the message shown. @@ -58,34 +57,35 @@ class NoneSplashScreen: """ Class implementing a "None" splashscreen for eric. - + This class implements the same interface as the real splashscreen, but simply does nothing. """ + def __init__(self): """ Constructor """ pass - + def showMessage(self, msg): """ Public method to show a message in the bottom part of the splashscreen. - + @param msg message to be shown (string) """ logging.debug(msg) - + def clearMessage(self): """ Public method to clear the message shown. """ pass - + def finish(self, widget): """ Public method to finish the splash screen. - + @param widget widget to wait for (QWidget) """ pass