Skip to content

Commit

Permalink
add splash
Browse files Browse the repository at this point in the history
  • Loading branch information
CareF committed Jul 12, 2020
1 parent 149bee2 commit 4658c8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ErwinJr.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import SaveLoad

from PyQt5.QtCore import (QSettings, QFile, QUrl,
QFileInfo, QVariant)
from PyQt5.QtGui import QIcon, QKeySequence, QDesktopServices
from PyQt5.QtGui import QIcon, QKeySequence, QDesktopServices, QPixmap
from PyQt5.QtWidgets import (QApplication, QMainWindow, QTabWidget,
QAction, QMessageBox, QFileDialog,
QInputDialog)
QInputDialog, QSplashScreen)

from QuantumTab import QuantumTab
from OpticalTab import OpticalTab
Expand Down Expand Up @@ -489,8 +489,15 @@ def main(filename=None):
app.setApplicationName("ErwinJr2")
app.setWindowIcon(QIcon('images/EJpng256.png'))

# Create and display the splash screen
splash_pix = QPixmap('images/splash.png')
splash = QSplashScreen(splash_pix)
splash.setMask(splash_pix.mask())
splash.show()

form = MainWindow(fileName)
form.show()
splash.finish(form)
app.exec_()


Expand Down
Binary file added images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/splash.xcf
Binary file not shown.

0 comments on commit 4658c8e

Please sign in to comment.