- remade the splash screen to show multiple messages on app initialization

- added a new splash image
- added a control in Preferences -> General -> GUI Settings -> Splash Screen that control if the splash screen is shown at startup
This commit is contained in:
Marius Stanciu
2019-09-13 01:24:54 +03:00
committed by Marius
parent 1a8784f5ab
commit 7ad03f9f0a
5 changed files with 73 additions and 12 deletions

View File

@@ -60,17 +60,17 @@ if __name__ == '__main__':
# Create and display the splash screen
# from here: https://eli.thegreenplace.net/2009/05/09/creating-splash-screens-in-pyqt
splash_pix = QtGui.QPixmap('share/flatcam_icon256.png')
splash = QtWidgets.QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint)
# splash.setMask(splash_pix.mask())
splash.show()
app.processEvents()
splash.showMessage("FlatCAM is initializing ...",
alignment=Qt.AlignBottom | Qt.AlignLeft,
color=QtGui.QColor("gray"))
# splash_pix = QtGui.QPixmap('share/splash.png')
# splash = QtWidgets.QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint)
# # splash.setMask(splash_pix.mask())
# splash.show()
# app.processEvents()
# splash.showMessage("FlatCAM is initializing ...",
# alignment=Qt.AlignBottom | Qt.AlignLeft,
# color=QtGui.QColor("gray"))
fc = App()
splash.finish(fc.ui)
# splash.finish(fc.ui)
fc.ui.show()
sys.exit(app.exec_())