This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
HenryZeng
committed
Apr 30, 2020
1 parent
d1bc332
commit 43cd603
Showing
22 changed files
with
3,503 additions
and
1,606 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,2 @@ | ||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
from UI.MainWindow import Ui_MainWindow as Main_window | ||
from UI.About import Ui_MainWindow as About_window | ||
import Process.Mix | ||
|
||
import sys | ||
|
||
class window_main(QtWidgets.QMainWindow, Main_window): | ||
def __init__(self): | ||
super().__init__() | ||
self.setupUi(self) | ||
|
||
def About_Window(self): | ||
about.show() | ||
|
||
|
||
class window_about(QtWidgets.QMainWindow, About_window): | ||
def __init__(self): | ||
super().__init__() | ||
self.setupUi(self) | ||
|
||
|
||
if __name__ == "__main__": | ||
app = QtWidgets.QApplication(sys.argv) | ||
main = window_main() | ||
main.show() | ||
|
||
about = window_about() | ||
sys.exit(app.exec_()) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from .imports import * | ||
from .window_about import window_about | ||
from .window_loading import window_loading | ||
from .window_main import window_main | ||
|
||
|
||
class window_loading_(window_loading): | ||
def run(self): | ||
main.show() | ||
self.close() | ||
# 开启动画后加载主界面 | ||
|
||
|
||
class window_about_(window_about): | ||
pass | ||
|
||
|
||
class window_main_(window_main): | ||
def About_Window(self): | ||
about.show() | ||
|
||
|
||
app = QtWidgets.QApplication(sys.argv) | ||
|
||
main = window_main_() | ||
about = window_about_() | ||
|
||
loading = window_loading_() | ||
loading.show() | ||
|
||
sys.exit(app.exec_()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
from PyQt5.QtCore import pyqtSignal | ||
import sys,time | ||
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from .imports import * | ||
from UI.About import Ui_MainWindow as About_window | ||
class window_about(QtWidgets.QMainWindow, About_window): | ||
def __init__(self): | ||
super().__init__() | ||
self.setupUi(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from .imports import * | ||
from UI.Loading import Ui_Form as Loading_window | ||
|
||
class wait(QtCore.QThread): | ||
# 创建了一个子线程,用来防止等待带来的界面卡死 | ||
comm = pyqtSignal() | ||
def __init__(self): | ||
super().__init__() | ||
def run(self): | ||
time.sleep(5) | ||
# 等待5秒 | ||
self.comm.emit() | ||
|
||
class window_loading(QtWidgets.QMainWindow,Loading_window): | ||
def __init__(self): | ||
super().__init__() | ||
self.setWindowFlags(QtCore.Qt.FramelessWindowHint) | ||
self.setupUi(self) | ||
self.waits = wait() | ||
self.waits.comm.connect(self.run) | ||
self.waits.start() | ||
# 执行QThread子线程,进行等待,等待结束后回调run(self)函数 | ||
def run(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from .imports import * | ||
from UI.MainWindow import Ui_MainWindow as Main_window | ||
class window_main(QtWidgets.QMainWindow, Main_window): | ||
def __init__(self): | ||
super().__init__() | ||
self.setupUi(self) | ||
|
||
def About_Window(self): | ||
pass |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'E:\Codes\独立项目\Cardinal\UI\Loading.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.14.2 | ||
# | ||
# WARNING! All changes made in this file will be lost! | ||
|
||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class Ui_Form(object): | ||
def setupUi(self, Form): | ||
Form.setObjectName("Form") | ||
Form.setWindowModality(QtCore.Qt.NonModal) | ||
Form.resize(300, 300) | ||
Form.setMinimumSize(QtCore.QSize(300, 300)) | ||
Form.setMaximumSize(QtCore.QSize(300, 300)) | ||
self.label = QtWidgets.QLabel(Form) | ||
self.label.setGeometry(QtCore.QRect(0, 0, 300, 300)) | ||
self.label.setStyleSheet("image: url(:/Logo/Share/Cardinal.png);\n" | ||
"background-color: rgb(0, 0, 0);") | ||
self.label.setText("") | ||
self.label.setObjectName("label") | ||
|
||
self.retranslateUi(Form) | ||
QtCore.QMetaObject.connectSlotsByName(Form) | ||
|
||
def retranslateUi(self, Form): | ||
_translate = QtCore.QCoreApplication.translate | ||
Form.setWindowTitle(_translate("Form", "Loading")) | ||
import Share_rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<RCC> | ||
<qresource prefix="Logo"> | ||
<file>Share/Cardinal.png</file> | ||
<file>Share/Logo.png</file> | ||
</qresource> | ||
</RCC> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class a(): | ||
def run(self): | ||
x.xx() | ||
|
||
|
||
|
||
|
||
class b(): | ||
|
||
def run(self): | ||
print(1) | ||
xx = a() | ||
xx.run() | ||
|
||
def xx(self): | ||
print(2) | ||
|
||
if __name__ == "__main__": | ||
x = b() | ||
x.run() |