WeChatMsg/decrypt_window.py

42 lines
1.1 KiB
Python
Raw Normal View History

2023-11-12 21:51:33 +08:00
import ctypes
import sys
2023-11-22 23:14:49 +08:00
from PyQt5.QtGui import QIcon
2023-11-22 22:31:34 +08:00
from PyQt5.QtWidgets import QApplication, QMessageBox, QWidget
2023-11-12 21:51:33 +08:00
2023-11-23 22:58:27 +08:00
from app.resources import resource_rc
2023-11-15 20:54:27 +08:00
from app.ui_pc.tool.pc_decrypt import pc_decrypt
2023-11-12 21:51:33 +08:00
2023-11-23 22:58:27 +08:00
var = resource_rc.qt_resource_name
2023-11-12 21:51:33 +08:00
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("WeChatReport")
class ViewController(QWidget):
def __init__(self):
super().__init__()
2023-11-22 23:14:49 +08:00
self.setWindowTitle('解密')
2023-11-23 22:58:27 +08:00
self.setWindowIcon(QIcon(':/icons/icons/logo.svg'))
2023-11-12 21:51:33 +08:00
self.viewMainWIn = None
self.viewDecrypt = None
def loadPCDecryptView(self):
"""
登录界面
:return:
"""
2023-11-22 23:14:49 +08:00
self.viewDecrypt = pc_decrypt.DecryptControl(self)
2023-11-12 21:51:33 +08:00
self.viewDecrypt.DecryptSignal.connect(self.show_success)
2023-11-22 23:14:49 +08:00
# self.viewDecrypt.show()
2023-11-12 21:51:33 +08:00
def show_success(self):
QMessageBox.about(self, "解密成功", "数据库文件存储在\napp/DataBase/Msg\n文件夹下")
2023-11-22 23:14:49 +08:00
self.close()
2023-11-12 21:51:33 +08:00
if __name__ == '__main__':
app = QApplication(sys.argv)
view = ViewController()
2023-11-16 23:56:36 +08:00
view.loadPCDecryptView()
2023-11-22 23:14:49 +08:00
view.show()
2023-11-12 21:51:33 +08:00
sys.exit(app.exec_())