- now, Excellon and Gerber edited objects will have the source_code updated and ready to be saved

- the edited Gerber (or Excellon) object now is kept in the app after editing and the edited object is a new object
- added a message to the splash screen
This commit is contained in:
Marius Stanciu
2019-09-12 22:21:19 +03:00
committed by Marius
parent 295cba8539
commit 1a8784f5ab
5 changed files with 92 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
import sys
import os
from PyQt5 import QtWidgets
from PyQt5 import QtWidgets, QtGui
from PyQt5.QtCore import QSettings, Qt
from FlatCAMApp import App
from flatcamGUI import VisPyPatches
@@ -60,18 +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 = QtWidgets.QPixmap('splash_loading.png')
# splash = QtWidgets.QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint)
splash_pix = QtGui.QPixmap('share/flatcam_icon256.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
splash.show()
app.processEvents()
splash.showMessage("FlatCAM is initializing ...",
alignment=Qt.AlignBottom | Qt.AlignLeft,
color=QtGui.QColor("gray"))
fc = App()
splash.finish(fc.ui)
fc.ui.show()
# splash.finish(fc)
sys.exit(app.exec_())