2008-11-03 19:32:54 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2019-04-13 13:00:22 +00:00
|
|
|
##########################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# ---------------------------------------------------------------------- #
|
|
|
|
# Copyright (c) 2008-2019 OpenLP Developers #
|
|
|
|
# ---------------------------------------------------------------------- #
|
|
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, #
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
|
|
# GNU General Public License for more details. #
|
|
|
|
# #
|
|
|
|
# You should have received a copy of the GNU General Public License #
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
|
|
|
##########################################################################
|
2013-02-01 21:34:23 +00:00
|
|
|
"""
|
|
|
|
The splash screen
|
|
|
|
"""
|
2008-11-03 19:32:54 +00:00
|
|
|
|
2015-11-07 00:49:40 +00:00
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
2010-06-17 14:23:50 +00:00
|
|
|
|
2013-02-01 21:34:23 +00:00
|
|
|
|
2015-11-07 00:49:40 +00:00
|
|
|
class SplashScreen(QtWidgets.QSplashScreen):
|
2013-02-01 21:34:23 +00:00
|
|
|
"""
|
|
|
|
The splash screen
|
|
|
|
"""
|
2010-07-30 16:13:17 +00:00
|
|
|
def __init__(self):
|
2013-02-01 21:34:23 +00:00
|
|
|
"""
|
|
|
|
Constructor
|
|
|
|
"""
|
2013-07-18 14:14:29 +00:00
|
|
|
super(SplashScreen, self).__init__()
|
2018-09-12 05:43:27 +00:00
|
|
|
self.setup_ui()
|
2008-11-03 19:32:54 +00:00
|
|
|
|
2018-09-12 05:43:27 +00:00
|
|
|
def setup_ui(self):
|
2013-02-01 21:34:23 +00:00
|
|
|
"""
|
|
|
|
Set up the UI
|
|
|
|
"""
|
2013-08-31 18:17:38 +00:00
|
|
|
self.setObjectName('splashScreen')
|
2011-01-02 22:24:14 +00:00
|
|
|
self.setContextMenuPolicy(QtCore.Qt.PreventContextMenu)
|
2013-08-31 18:17:38 +00:00
|
|
|
splash_image = QtGui.QPixmap(':/graphics/openlp-splash-screen.png')
|
2011-01-02 22:24:14 +00:00
|
|
|
self.setPixmap(splash_image)
|
|
|
|
self.setMask(splash_image.mask())
|
|
|
|
self.resize(370, 370)
|