From b493bf88a8b7d85e6f5425fd0d2ca0c90796e428 Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:04:28 +0800 Subject: [PATCH] Add files via upload --- PYAS.py | 8 +++++--- PYAS_UI.py | 4 ++-- PYAS_Version_File.py | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PYAS.py b/PYAS.py index aeb8b4e..3858a51 100644 --- a/PYAS.py +++ b/PYAS.py @@ -991,6 +991,7 @@ class MainWindow_Controller(QtWidgets.QMainWindow): if QMessageBox.warning(self,self.text_Translate("清理系統垃圾"),self.text_Translate("您確定要清理系統垃圾嗎?"),QMessageBox.Yes|QMessageBox.No) == 16384: self.total_deleted_size = 0 self.traverse_temp_files(f"C:/Users/{os.getlogin()}/AppData/Local/Temp") + self.traverse_temp_files(f"C:/Windows/Temp") self.traverse_temp_files(f"C:/$Recycle.Bin") QMessageBox.information(self,self.text_Translate("完成"),self.text_Translate(f"成功清理了 {self.total_deleted_size} 位元的系統垃圾"),QMessageBox.Ok) except Exception as e: @@ -1004,8 +1005,9 @@ class MainWindow_Controller(QtWidgets.QMainWindow): if os.path.isdir(fullpath): self.traverse_temp_files(fullpath) else: - self.total_deleted_size += os.path.getsize(fullpath) + file_size = os.path.getsize(fullpath) os.remove(fullpath) + self.total_deleted_size += file_size except: continue @@ -1188,7 +1190,7 @@ class MainWindow_Controller(QtWidgets.QMainWindow): elif action and str(os.path.splitext(file)[1]).lower() in sflist: if self.sign_scan(file) and self.api_scan(file): os.remove(file) - self.system_notification(self.text_Translate("病毒刪除: ")+file) + self.system_notification(self.text_Translate("惡意軟體刪除: ")+file) except: pass @@ -1221,7 +1223,7 @@ class MainWindow_Controller(QtWidgets.QMainWindow): pass if __name__ == '__main__': - pyas_version = "2.7.1" + pyas_version = "2.7.2" QtCore.QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling) QtGui.QGuiApplication.setAttribute(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough) app = QtWidgets.QApplication(sys.argv) diff --git a/PYAS_UI.py b/PYAS_UI.py index 1136126..d121e3e 100644 --- a/PYAS_UI.py +++ b/PYAS_UI.py @@ -499,7 +499,7 @@ class Ui_MainWindow(object): self.Virus_Scan_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.Virus_Scan_title.setObjectName("Virus_Scan_title") self.Virus_Scan_text = QtWidgets.QLabel(self.Virus_Scan_widget) - self.Virus_Scan_text.setGeometry(QtCore.QRect(45, 70, 581, 81)) + self.Virus_Scan_text.setGeometry(QtCore.QRect(45, 70, 581, 71)) font = QtGui.QFont() font.setFamily("Microsoft YaHei") font.setPointSize(13) @@ -1738,6 +1738,7 @@ class Ui_MainWindow(object): self.Theme_illustrate.raise_() self.Language_Choose_widget_2.raise_() self.Theme_title.raise_() + self.Setting_widget.raise_() self.State_widget.raise_() self.widget_2.raise_() self.Process_widget.raise_() @@ -1747,7 +1748,6 @@ class Ui_MainWindow(object): self.About_widget.raise_() self.Tools_widget.raise_() self.Virus_Scan_widget.raise_() - self.Setting_widget.raise_() MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) diff --git a/PYAS_Version_File.py b/PYAS_Version_File.py index a5a1f89..faeead7 100644 --- a/PYAS_Version_File.py +++ b/PYAS_Version_File.py @@ -1,7 +1,7 @@ import pyinstaller_versionfile pyinstaller_versionfile.create_versionfile( output_file="versionfile.txt", -version='2.7.1', +version='2.7.2', company_name="PYAS Security", file_description="Python Antivirus Software", internal_name="PYAS",