From 295cba853994977e1a96e966707ed3c14e717781 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 12 Sep 2019 17:57:16 +0300 Subject: [PATCH] - started to add an application splash screen --- FlatCAM.py | 15 +++++++++++++++ README.md | 1 + flatcamGUI/FlatCAMGUI.py | 1 - 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/FlatCAM.py b/FlatCAM.py index 2d52e82e..71f5df9a 100644 --- a/FlatCAM.py +++ b/FlatCAM.py @@ -58,5 +58,20 @@ if __name__ == '__main__': else: app.setAttribute(Qt.AA_EnableHighDpiScaling, False) + # Create and display the splash screen + # from here: https://eli.thegreenplace.net/2009/05/09/creating-splash-screens-in-pyqt + # splash_pix = QtWidgets.QPixmap('splash_loading.png') + # splash = QtWidgets.QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint) + # splash.setMask(splash_pix.mask()) + # splash.show() + # app.processEvents() + # + # # Simulate something that takes time + # while True: + # pass + fc = App() + fc.ui.show() + # splash.finish(fc) + sys.exit(app.exec_()) diff --git a/README.md b/README.md index f48a50aa..df33153f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing. - small changes in the TclCommands: MillDrills, MillSlots, DrillCNCJob: the new parameter for tolerance is now named: tooldia - cleaned up the 'About FlatCAM' window, started to give credits for the translation team +- started to add an application splash screen 11.09.2019 diff --git a/flatcamGUI/FlatCAMGUI.py b/flatcamGUI/FlatCAMGUI.py index d14c6fda..4e4d630c 100644 --- a/flatcamGUI/FlatCAMGUI.py +++ b/flatcamGUI/FlatCAMGUI.py @@ -1848,7 +1848,6 @@ class FlatCAMGUI(QtWidgets.QMainWindow): ('BETA' if beta else ''), platform.architecture()[0]) ) - self.show() self.filename = "" self.units = ""