forked from hgalytoby/MyselfAnimeDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyselfClose.py
23 lines (18 loc) · 840 Bytes
/
MyselfClose.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from UI.myself_close_ui import Ui_MyselfClose
from PyQt5 import QtWidgets, QtGui, QtCore
from myself_thread import ProcessExit
class MyselfClose(QtWidgets.QWidget, Ui_MyselfClose):
def __init__(self, anime):
super(MyselfClose, self).__init__()
self.setupUi(self)
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
self.setFixedSize(self.width(), self.height())
self.pixmap = QtGui.QPixmap("./image/logo.png")
self.logo_label.setPixmap(self.pixmap)
self.logo_label.setScaledContents(True)
self.anime = anime
self.process_exit = ProcessExit(anime=self.anime)
self.process_exit.process_exit_signal.connect(self.process_exit_task)
self.process_exit.start()
def process_exit_task(self, signal):
QtWidgets.QApplication.closeAllWindows()