-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLauncher1.py
44 lines (33 loc) · 994 Bytes
/
Launcher1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 2021/2/20
@author: Irony
@site: https://github.com/PyQt5
@email: [email protected]
@file: Launcher1
@description:
"""
import cgitb
import os
import sys
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import QWidget
import Resource_rc
from SplashScreen import SplashScreen
from UiFiles.Ui_AdobeBottom import Ui_AdobeBottom
class AdobeBottom(QWidget, Ui_AdobeBottom):
def __init__(self):
super(AdobeBottom, self).__init__()
self.setupUi(self)
if __name__ == '__main__':
cgitb.enable(format='text')
Resource_rc.qInitResources()
executable = 'Client'
if sys.argv[0].find('.py') > -1:
# 调试时用
sys.argv.append(os.path.abspath('Client.py'))
executable = sys.executable
SplashScreen.start(
executable, ':/Resources/Splash2015Background.png',
AdobeBottom, above=True, color=QColor(43, 204, 249))