- started to add an application splash screen
This commit is contained in:
15
FlatCAM.py
15
FlatCAM.py
@@ -58,5 +58,20 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
app.setAttribute(Qt.AA_EnableHighDpiScaling, False)
|
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 = App()
|
||||||
|
fc.ui.show()
|
||||||
|
# splash.finish(fc)
|
||||||
|
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
|||||||
@@ -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
|
- 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
|
- cleaned up the 'About FlatCAM' window, started to give credits for the translation team
|
||||||
|
- started to add an application splash screen
|
||||||
|
|
||||||
11.09.2019
|
11.09.2019
|
||||||
|
|
||||||
|
|||||||
@@ -1848,7 +1848,6 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
|||||||
('BETA' if beta else ''),
|
('BETA' if beta else ''),
|
||||||
platform.architecture()[0])
|
platform.architecture()[0])
|
||||||
)
|
)
|
||||||
self.show()
|
|
||||||
|
|
||||||
self.filename = ""
|
self.filename = ""
|
||||||
self.units = ""
|
self.units = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user