35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
from PySide6.QtCore import QFile, QIODevice
|
|
from PySide6.QtUiTools import QUiLoader
|
|
from PySide6.QtWidgets import QApplication, QMessageBox
|
|
|
|
# from PySide6.QtCore import *
|
|
# from PySide6.QtUiTools import *
|
|
# from PySide6.QtWidgets import *
|
|
|
|
import sys
|
|
import pyperclip
|
|
import clear_pm_py
|
|
|
|
if __name__ == "__main__":
|
|
app = QApplication(sys.argv)
|
|
|
|
file_ok, pm1, pm2 = clear_pm_py.get_pm1_2_pm2()
|
|
if not file_ok:
|
|
print(file_ok, pm1, pm2, clear_pm_py.get_disk_sn())
|
|
pyperclip.copy(clear_pm_py.get_disk_sn())
|
|
QMessageBox.information(None, "ERROR", "Runtime Error 0x00:" + clear_pm_py.get_disk_sn())
|
|
pyperclip.copy(clear_pm_py.get_disk_sn())
|
|
sys.exit()
|
|
pass_ok, pass_id = clear_pm_py.is_pass(pm1, pm2)
|
|
if not pass_ok:
|
|
print(pass_ok, pass_id)
|
|
pyperclip.copy(pass_id)
|
|
QMessageBox.information(None, "ERROR", "Runtime Error 0x01:" + pass_id)
|
|
pyperclip.copy(pass_id)
|
|
sys.exit()
|
|
|
|
print('pass ok')
|
|
sys.exit(app.exec_())
|
|
|
|
# nuitka --mingw64 --module --show-progress --output-dir=myPyds dir_a.py
|