Compare commits

..
2 Commits
Author SHA1 Message Date
PYDT 36e6ac3301 Add files via upload 2023-01-18 10:07:57 +08:00
PYDT c20a0d3f32 Add files via upload 2023-01-18 10:07:01 +08:00
4 changed files with 28 additions and 14 deletions

No files matched your search

+19 -5
View File
@@ -1614,6 +1614,9 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
def Look_for_File(self):
try:
os.remove('Library/PYAS/Temp/PYASF.tmp')
except:
pass
try:
File_Name = self.ui.Look_for_File_input.text()
if File_Name != "":
self.find_files_info_zh(File_Name)
@@ -1983,8 +1986,8 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
self.m_Position=event.globalPos()-self.pos() #獲取鼠標相對窗口的位置
event.accept()
while self.ui.pyas_opacity > 60 and self.m_flag == True:
time.sleep(0.01)
self.ui.pyas_opacity -= 2
time.sleep(0.003)
self.ui.pyas_opacity -= 1
window.setWindowOpacity(self.ui.pyas_opacity/100)
QApplication.processEvents()
@@ -2001,8 +2004,8 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
self.m_flag=False
self.setCursor(QCursor(Qt.ArrowCursor))
while self.ui.pyas_opacity < 100 and self.m_flag == False:
time.sleep(0.01)
self.ui.pyas_opacity += 2
time.sleep(0.003)
self.ui.pyas_opacity += 1
window.setWindowOpacity(self.ui.pyas_opacity/100)
QApplication.processEvents()
@@ -2018,6 +2021,13 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
rect.setHeight(rect.height()-10)
pat2.drawRoundedRect(rect, 1, 1)
def closeEvent(self, event):
while self.ui.pyas_opacity > 0:
time.sleep(0.001)
self.ui.pyas_opacity -= 1
window.setWindowOpacity(self.ui.pyas_opacity/100)
QApplication.processEvents()
##################################### 主初始化 #####################################
if __name__ == '__main__':
@@ -2025,13 +2035,17 @@ if __name__ == '__main__':
pyas_library()
pyasp_remove()
pyasb_remove()
pyas_version = "2.5.5"
pyas_version = "2.5.6"
pyae_version = "2.2.1"
QtCore.QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)# 自適應窗口縮放
QtGui.QGuiApplication.setAttribute(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)# 自適應窗口縮放
app = QtWidgets.QApplication(sys.argv)
window = MainWindow_Controller()
window.show()
for i in range(100):
time.sleep(0.001)
window.setWindowOpacity(i/100)
QApplication.processEvents()
print('[INFO] PYAS V'+pyas_version+' , PYAE V'+pyae_version)
print('[LOAD] Process Time: '+str(time.process_time()-start_m)+' sec')
sys.exit(app.exec_())
+4 -4
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Windows\Documents\Project\Python\PYDT開發團隊\PYAS防毒軟體\PYAS_程式碼\PYAS_UI.ui'
# Form implementation generated from reading ui file 'C:\Users\Windows\Documents\Project\Python\PYDT開發團隊\PYAS防毒軟體\PYAS_程式碼\Library\PYAS\Qtui\PYAS_UI.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
@@ -22,7 +22,7 @@ class Ui_MainWindow(object):
MainWindow.setFont(font)
MainWindow.setFocusPolicy(QtCore.Qt.TabFocus)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("Library/PYAS/Icon/ICON.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon.addPixmap(QtGui.QPixmap("C:\\Users\\Windows\\Documents\\Project\\Python\\PYDT開發團隊\\PYAS防毒軟體\\PYAS_程式碼\\Library\\PYAS\\Qtui\\Library/Icon/ICON.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setIconSize(QtCore.QSize(24, 24))
MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
@@ -569,7 +569,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_output.setFont(font)
self.Encryption_Text_output.setObjectName("Encryption_Text_output")
self.Encryption_Text_Password_input = QtWidgets.QLineEdit(self.Encryption_Text_widget)
self.Encryption_Text_Password_input.setGeometry(QtCore.QRect(140, 400, 281, 31))
self.Encryption_Text_Password_input.setGeometry(QtCore.QRect(150, 400, 271, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -1853,7 +1853,7 @@ class Ui_MainWindow(object):
self.PYAE_Version.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.PYAE_Version.setObjectName("PYAE_Version")
self.License_terms = QtWidgets.QTextEdit(self.About_widget)
self.License_terms.setGeometry(QtCore.QRect(30, 300, 611, 131))
self.License_terms.setGeometry(QtCore.QRect(30, 310, 611, 121))
self.License_terms.setStyleSheet("")
self.License_terms.setReadOnly(True)
self.License_terms.setObjectName("License_terms")
+4 -4
View File
@@ -1103,9 +1103,9 @@ QPushButton:pressed
<widget class="QLineEdit" name="Encryption_Text_Password_input">
<property name="geometry">
<rect>
<x>140</x>
<x>150</x>
<y>400</y>
<width>281</width>
<width>271</width>
<height>31</height>
</rect>
</property>
@@ -3719,9 +3719,9 @@ QPushButton:hover
<property name="geometry">
<rect>
<x>30</x>
<y>300</y>
<y>310</y>
<width>611</width>
<height>131</height>
<height>121</height>
</rect>
</property>
<property name="styleSheet">
+1 -1
View File
@@ -1,7 +1,7 @@
import pyinstaller_versionfile
pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version='2.5.5',
version='2.5.6',
company_name="PYAS Security",
file_description="Python Antivirus Software",
internal_name="PYAS",