Compare commits

...
3 Commits
Author SHA1 Message Date
87owo 675fd2d16e Update README.md 2022-10-28 06:12:04 +08:00
87owo f6dd77015a Add files via upload 2022-10-28 00:44:54 +08:00
87owo 5ff8c774e4 Add files via upload 2022-10-28 00:44:05 +08:00
5 changed files with 432 additions and 302 deletions

No files matched your search

+115 -90
View File
@@ -23,6 +23,10 @@
<property name="windowTitle">
<string>PYAS</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>Library/Icon/ICON.bmp</normaloff>Library/Icon/ICON.bmp</iconset>
</property>
<property name="iconSize">
<size>
<width>24</width>
@@ -94,7 +98,7 @@
<rect>
<x>20</x>
<y>10</y>
<width>351</width>
<width>411</width>
<height>41</height>
</rect>
</property>
@@ -121,7 +125,7 @@
<x>20</x>
<y>50</y>
<width>521</width>
<height>41</height>
<height>51</height>
</rect>
</property>
<property name="font">
@@ -203,7 +207,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>10</y>
<width>81</width>
<width>101</width>
<height>41</height>
</rect>
</property>
@@ -273,7 +277,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>10</y>
<width>161</width>
<width>321</width>
<height>41</height>
</rect>
</property>
@@ -299,7 +303,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>50</y>
<width>181</width>
<width>321</width>
<height>41</height>
</rect>
</property>
@@ -329,9 +333,9 @@ QPushButton:hover
<widget class="QWidget" name="Language_Choose_widget" native="true">
<property name="geometry">
<rect>
<x>470</x>
<x>350</x>
<y>0</y>
<width>321</width>
<width>441</width>
<height>101</height>
</rect>
</property>
@@ -343,15 +347,21 @@ QPushButton:hover
<widget class="QWidget" name="horizontalLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<x>0</x>
<y>10</y>
<width>301</width>
<width>421</width>
<height>81</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QRadioButton" name="Language_Traditional_Chinese">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Microsoft YaHei</family>
@@ -366,6 +376,12 @@ QPushButton:hover
</item>
<item>
<widget class="QRadioButton" name="Language_Simplified_Chinese">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Microsoft YaHei</family>
@@ -380,6 +396,12 @@ QPushButton:hover
</item>
<item>
<widget class="QRadioButton" name="Languahe_English">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Microsoft YaHei</family>
@@ -409,7 +431,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>10</y>
<width>291</width>
<width>351</width>
<height>41</height>
</rect>
</property>
@@ -435,7 +457,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>50</y>
<width>291</width>
<width>351</width>
<height>41</height>
</rect>
</property>
@@ -465,9 +487,9 @@ QPushButton:hover
<widget class="QWidget" name="Language_Choose_widget_2" native="true">
<property name="geometry">
<rect>
<x>470</x>
<x>390</x>
<y>0</y>
<width>321</width>
<width>391</width>
<height>101</height>
</rect>
</property>
@@ -479,9 +501,9 @@ QPushButton:hover
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<x>0</x>
<y>10</y>
<width>301</width>
<width>381</width>
<height>80</height>
</rect>
</property>
@@ -598,7 +620,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -940,7 +962,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -993,9 +1015,9 @@ QPushButton:hover
<widget class="QPushButton" name="Encryption_Text_Run_Button">
<property name="geometry">
<rect>
<x>420</x>
<x>430</x>
<y>400</y>
<width>91</width>
<width>101</width>
<height>31</height>
</rect>
</property>
@@ -1081,9 +1103,9 @@ QPushButton:pressed
<widget class="QLineEdit" name="Encryption_Text_Password_input">
<property name="geometry">
<rect>
<x>110</x>
<x>160</x>
<y>400</y>
<width>191</width>
<width>261</width>
<height>31</height>
</rect>
</property>
@@ -1100,7 +1122,7 @@ QPushButton:pressed
<rect>
<x>340</x>
<y>60</y>
<width>261</width>
<width>311</width>
<height>31</height>
</rect>
</property>
@@ -1127,7 +1149,7 @@ QPushButton:pressed
<rect>
<x>20</x>
<y>400</y>
<width>81</width>
<width>131</width>
<height>31</height>
</rect>
</property>
@@ -1154,7 +1176,7 @@ QPushButton:pressed
<rect>
<x>20</x>
<y>60</y>
<width>201</width>
<width>271</width>
<height>31</height>
</rect>
</property>
@@ -1179,9 +1201,9 @@ QPushButton:pressed
<widget class="QPushButton" name="Decrypt_Text_Run_Button">
<property name="geometry">
<rect>
<x>320</x>
<x>550</x>
<y>400</y>
<width>91</width>
<width>101</width>
<height>31</height>
</rect>
</property>
@@ -1254,7 +1276,7 @@ QPushButton:pressed
<property name="geometry">
<rect>
<x>30</x>
<y>20</y>
<y>30</y>
<width>611</width>
<height>101</height>
</rect>
@@ -1262,6 +1284,9 @@ QPushButton:pressed
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="layoutDirection">
<enum>Qt::RightToLeft</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
@@ -1297,7 +1322,7 @@ QPushButton:pressed
<x>20</x>
<y>50</y>
<width>421</width>
<height>41</height>
<height>51</height>
</rect>
</property>
<property name="font">
@@ -1706,7 +1731,7 @@ QPushButton:pressed
<rect>
<x>45</x>
<y>40</y>
<width>131</width>
<width>201</width>
<height>41</height>
</rect>
</property>
@@ -1732,7 +1757,7 @@ QPushButton:pressed
<x>45</x>
<y>90</y>
<width>581</width>
<height>61</height>
<height>71</height>
</rect>
</property>
<property name="font">
@@ -2387,7 +2412,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -2442,7 +2467,7 @@ QPushButton:hover
<rect>
<x>30</x>
<y>200</y>
<width>161</width>
<width>471</width>
<height>31</height>
</rect>
</property>
@@ -2458,7 +2483,7 @@ QPushButton:hover
<rect>
<x>30</x>
<y>160</y>
<width>141</width>
<width>471</width>
<height>31</height>
</rect>
</property>
@@ -2485,7 +2510,7 @@ QPushButton:hover
<rect>
<x>30</x>
<y>80</y>
<width>161</width>
<width>471</width>
<height>31</height>
</rect>
</property>
@@ -2512,7 +2537,7 @@ QPushButton:hover
<rect>
<x>30</x>
<y>120</y>
<width>161</width>
<width>471</width>
<height>31</height>
</rect>
</property>
@@ -2526,9 +2551,9 @@ QPushButton:hover
<widget class="QPushButton" name="Change_Users_Password_Run_Button">
<property name="geometry">
<rect>
<x>210</x>
<x>520</x>
<y>140</y>
<width>81</width>
<width>91</width>
<height>31</height>
</rect>
</property>
@@ -2602,7 +2627,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -2697,7 +2722,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -3039,7 +3064,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -3188,7 +3213,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -3338,7 +3363,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>91</width>
<height>41</height>
</rect>
</property>
@@ -3393,7 +3418,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>60</y>
<width>141</width>
<width>131</width>
<height>41</height>
</rect>
</property>
@@ -3421,7 +3446,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>110</y>
<width>101</width>
<width>131</width>
<height>41</height>
</rect>
</property>
@@ -3446,9 +3471,9 @@ QPushButton:hover
<widget class="QLabel" name="GUI_Made_Name">
<property name="geometry">
<rect>
<x>130</x>
<x>160</x>
<y>110</y>
<width>491</width>
<width>461</width>
<height>41</height>
</rect>
</property>
@@ -3475,7 +3500,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>160</y>
<width>101</width>
<width>131</width>
<height>41</height>
</rect>
</property>
@@ -3500,9 +3525,9 @@ QPushButton:hover
<widget class="QLabel" name="Core_Made_Name">
<property name="geometry">
<rect>
<x>130</x>
<x>160</x>
<y>160</y>
<width>491</width>
<width>461</width>
<height>41</height>
</rect>
</property>
@@ -3529,7 +3554,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>210</y>
<width>101</width>
<width>131</width>
<height>41</height>
</rect>
</property>
@@ -3554,9 +3579,9 @@ QPushButton:hover
<widget class="QLabel" name="Testers_Name">
<property name="geometry">
<rect>
<x>130</x>
<x>160</x>
<y>210</y>
<width>491</width>
<width>461</width>
<height>41</height>
</rect>
</property>
@@ -3608,9 +3633,9 @@ QPushButton:hover
<widget class="QLabel" name="PYAS_URL">
<property name="geometry">
<rect>
<x>130</x>
<x>160</x>
<y>260</y>
<width>321</width>
<width>461</width>
<height>41</height>
</rect>
</property>
@@ -3667,7 +3692,7 @@ QPushButton:hover
<rect>
<x>160</x>
<y>60</y>
<width>121</width>
<width>461</width>
<height>41</height>
</rect>
</property>
@@ -3711,7 +3736,7 @@ QPushButton:hover
<rect>
<x>20</x>
<y>310</y>
<width>171</width>
<width>211</width>
<height>31</height>
</rect>
</property>
@@ -3758,7 +3783,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -3811,9 +3836,9 @@ QPushButton:hover
<widget class="QLabel" name="Value_Path_title">
<property name="geometry">
<rect>
<x>90</x>
<x>30</x>
<y>80</y>
<width>101</width>
<width>161</width>
<height>31</height>
</rect>
</property>
@@ -3838,9 +3863,9 @@ QPushButton:hover
<widget class="QLabel" name="Value_Name_title">
<property name="geometry">
<rect>
<x>90</x>
<x>30</x>
<y>120</y>
<width>101</width>
<width>161</width>
<height>31</height>
</rect>
</property>
@@ -3865,9 +3890,9 @@ QPushButton:hover
<widget class="QLabel" name="Value_Type_title">
<property name="geometry">
<rect>
<x>90</x>
<x>30</x>
<y>160</y>
<width>101</width>
<width>161</width>
<height>31</height>
</rect>
</property>
@@ -3892,9 +3917,9 @@ QPushButton:hover
<widget class="QLabel" name="Value_Data_title">
<property name="geometry">
<rect>
<x>90</x>
<x>30</x>
<y>200</y>
<width>101</width>
<width>161</width>
<height>31</height>
</rect>
</property>
@@ -3921,7 +3946,7 @@ QPushButton:hover
<rect>
<x>210</x>
<y>80</y>
<width>221</width>
<width>431</width>
<height>31</height>
</rect>
</property>
@@ -3938,7 +3963,7 @@ QPushButton:hover
<rect>
<x>210</x>
<y>160</y>
<width>221</width>
<width>431</width>
<height>31</height>
</rect>
</property>
@@ -3955,7 +3980,7 @@ QPushButton:hover
<rect>
<x>210</x>
<y>120</y>
<width>221</width>
<width>431</width>
<height>31</height>
</rect>
</property>
@@ -3972,7 +3997,7 @@ QPushButton:hover
<rect>
<x>210</x>
<y>200</y>
<width>221</width>
<width>431</width>
<height>31</height>
</rect>
</property>
@@ -4041,9 +4066,9 @@ QPushButton:pressed
<widget class="QLabel" name="Value_HEKY_title">
<property name="geometry">
<rect>
<x>90</x>
<x>30</x>
<y>240</y>
<width>101</width>
<width>161</width>
<height>31</height>
</rect>
</property>
@@ -4070,7 +4095,7 @@ QPushButton:pressed
<rect>
<x>210</x>
<y>240</y>
<width>221</width>
<width>431</width>
<height>31</height>
</rect>
</property>
@@ -4334,7 +4359,7 @@ QToolButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -4390,7 +4415,7 @@ QPushButton:hover
<x>20</x>
<y>60</y>
<width>631</width>
<height>381</height>
<height>371</height>
</rect>
</property>
<property name="font">
@@ -4457,9 +4482,9 @@ outline: none;
<property name="geometry">
<rect>
<x>20</x>
<y>445</y>
<width>111</width>
<height>31</height>
<y>435</y>
<width>141</width>
<height>41</height>
</rect>
</property>
<property name="font">
@@ -4483,10 +4508,10 @@ outline: none;
<widget class="QLineEdit" name="Process_Total_View">
<property name="geometry">
<rect>
<x>130</x>
<y>450</y>
<width>121</width>
<height>21</height>
<x>170</x>
<y>440</y>
<width>481</width>
<height>31</height>
</rect>
</property>
<property name="font">
@@ -4888,7 +4913,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -4963,7 +4988,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -5058,7 +5083,7 @@ QPushButton:hover
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
@@ -5112,7 +5137,7 @@ QPushButton:hover
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<y>70</y>
<width>521</width>
<height>31</height>
</rect>
@@ -5132,7 +5157,7 @@ QPushButton:hover
<property name="geometry">
<rect>
<x>550</x>
<y>80</y>
<y>70</y>
<width>101</width>
<height>31</height>
</rect>
@@ -5206,9 +5231,9 @@ QPushButton:pressed
<property name="geometry">
<rect>
<x>20</x>
<y>120</y>
<width>281</width>
<height>16</height>
<y>105</y>
<width>631</width>
<height>31</height>
</rect>
</property>
<property name="font">
@@ -5473,7 +5498,7 @@ QPushButton:pressed
<rect>
<x>10</x>
<y>10</y>
<width>81</width>
<width>111</width>
<height>41</height>
</rect>
</property>
+202 -116
View File
@@ -1,36 +1,37 @@
####################################################################################
# Coding Python 3.10 UTF-8 [64-bit] (Python IDLE)
#
# PYAS Git: https://github.com/87owo/PYAS
# PYAS Web: https://pyantivirus.wixsite.com/pyas
#
# PYAS is managed by PYDT (Python Development Team)
# Copyright© 2020-2022 PYAS Python Antivirus Software.
####################################################################################
import time
start = time.time()
try:
import os, sys, psutil, socket, subprocess, platform, cryptocode, threading, pygame, datetime, configparser, webbrowser, random
from PYAS_English import english_list
from pefile import PE
import requests as req
from hashlib import md5, sha1, sha256
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PYAS_UI import Ui_MainWindow
#try:
#from Library.PYAS.Setup.chinese_converter import *
#except Exception as e:
#print('Error: '+str(e))
#pyas_bug_log(e)
#def resource_path(relative_path):
#if getattr(sys, 'frozen', False): #是否Bundle Resource
#base_path = sys._MEIPASS
#else:
#base_path = os.path.abspath(".")
#return os.path.join(base_path, relative_path)
#resource_path(os.path.join("Library\PYAS\Setup","simplified.txt"))
#resource_path(os.path.join("Library\PYAS\Setup","traditional.txt"))
#resource_path(os.path.join("Library\PYAS\Setup","monogram.json"))
#resource_path(os.path.join("Library\PYAS\Setup","bigram.json"))
#resource_path(os.path.join("Library\PYAS\Setup","__init__.json"))
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
print('Loading mods: '+str(time.time()-start)+' sec')
#print(str(sys.argv))
def pyas_bug_log(e):
try:
ft = open('Library/PYAS/Temp/PYASB.log','a',encoding='utf-8')
fe = ft.write(str(e)+'\n')
ft.close()
except:
pass
def pyas_key():
start = time.time()
@@ -67,15 +68,64 @@ def pyas_key():
print('Loading Key: '+str(time.time()-start)+' sec')
return False
def pyas_bug_log(e):
ft = open('Library/PYAS/Temp/PYASB.log','a',encoding='utf-8')
fe = ft.write(str(e)+'\n')
ft.close()
def pyas_vl_update():
now_time = datetime.datetime.now()
try:
v = open('Library/PYAE/Hashes/Viruslist.num','r').read()
except:
v = 0
try:
for i in range(int(v),10000):
#print(str(i))
try:
x = 5 - len(str(i))
y = '0'*x+str(i)
#print('a: '+y)
file = req.get('https://virusshare.com/hashfiles/VirusShare_'+y+'.md5', allow_redirects=True)
open('Library/PYAE/Hashes/'+y+'.md5', 'wb').write(file.content)
with open('Library/PYAE/Hashes/'+str(y)+'.md5',"rb") as f:
bytes = f.read()
readable_hash = str(md5(bytes).hexdigest())
f.close()
if '449a34c34a7507dffe1d39afad3eeac9' == readable_hash:
v = open('Library/PYAE/Hashes/Viruslist.num','w').write(str(i))
os.remove('Library/PYAE/Hashes/'+str(y)+'.md5')
print('done')
break
else:
try:
with open('Library/PYAE/Hashes/'+str(y)+'.md5','r') as fi:
rfpl = fi.readlines()
with open('Library/PYAE/Hashes/'+'Viruslist.md5','a') as vm:
for j in range(6,len(rfpl)):
vm.write(str(rfpl[j])[:10]+'\n')
vm.close()
fi.close()
except Exception as e:
print(str(e)+'=1')
v = open('Library/PYAE/Hashes/Viruslist.num','w').write(str(i+1))
os.remove('Library/PYAE/Hashes/'+str(y)+'.md5')
now_time = datetime.datetime.now()
except Exception as e:
pass
#print(str(e)+'=2')
#pyas_bug_log(e)
except Exception as e:
print(str(e)+'=3')
pyas_bug_log(e)
def perf_info():
while 1:
print('test')
x = str(psutil.cpu_percent(interval=1))
y = str(psutil.virtual_memory().percent)
print('CPU Used: '+x+'%')
print('RAM Used: '+y+'%')
self.ui.State_output.append('CPU Used: '+x+'%\n'+'RAM Used: '+y+'%')
class MainWindow_Controller(QtWidgets.QMainWindow):
def __init__(self):
start = time.time()
# in python3, super(Class, self).xxx = super().xxx
super(MainWindow_Controller, self).__init__()
self.ui = Ui_MainWindow() #繼承
self.setAttribute(Qt.WA_TranslucentBackground) #去掉邊框
@@ -83,7 +133,13 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
self.ui.setupUi(self)
self.setup_control()
print('Loading GUI: '+str(time.time()-start)+' sec')
def resizeEvent(self, event):
print('resize')
width, height = event.size().width(), event.size().height()
print(event.size())
print(width, height)
def setup_control(self):
start = time.time()
# TODO
@@ -125,7 +181,6 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
self.ui.Look_for_File_Back.clicked.connect(lambda:self.Back_To_More_Tools(self.ui.Look_for_File_widget))
self.ui.Encryption_Text_Button.clicked.connect(lambda:self.Change_Tools(self.ui.Encryption_Text_widget))
self.ui.Encryption_Text_Back.clicked.connect(lambda:self.Back_To_More_Tools(self.ui.Encryption_Text_widget))
#self.ui.Decrypt_Text_Button.clicked.connect(lambda:self.Change_Tools(self.ui.Encryption_Text_widget))
self.ui.Customize_REG_Command_Back.clicked.connect(lambda:self.Back_To_More_Tools(self.ui.Customize_REG_Command_widget))
self.ui.Customize_REG_Command_Button.clicked.connect(lambda:self.Change_Tools(self.ui.Customize_REG_Command_widget))
self.ui.Change_Users_Password_Button.clicked.connect(lambda:self.Change_Tools(self.ui.Change_Users_Password_widget))
@@ -165,8 +220,6 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
self.ui.Theme_Blue.clicked.connect(self.Change_Theme)
self.ui.Theme_Red.clicked.connect(self.Change_Theme)
print('Loading Func: '+str(time.time()-start)+' sec')
def init(self):
start = time.time()
@@ -219,15 +272,18 @@ class MainWindow_Controller(QtWidgets.QMainWindow):
print('Error: '+str(e))
pyas_bug_log(e)
try:
with open(r"./Library/PYAS/Setup/PYAS.ini",mode="w",encoding="utf-8") as file:
file.write("[Setting]\nhigh_sensitivity = 0\nlanguage = english")
file.close()
try:
with open(r"./Library/PYAS/Setup/PYAS.ini",mode="w",encoding="utf-8") as file:
file.write("[Setting]\nhigh_sensitivity = 0\nlanguage = english")
file.close()
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
with open(r"C:/Program Files (x86)/PYAS/Library/PYAS/Setup/PYAS.ini",mode="w",encoding="utf-8") as file:
file.write("[Setting]\nhigh_sensitivity = 0\nlanguage = english")
file.close()
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
with open(r"C:/Program Files (x86)/PYAS/Library/PYAS/Setup/PYAS.ini",mode="w",encoding="utf-8") as file:
file.write("[Setting]\nhigh_sensitivity = 0\nlanguage = english")
file.close()
self.language = "english"
self.lang_init_en()
self.ui.Languahe_English.setChecked(True)
@@ -326,7 +382,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Customize_REG_Command_widget.hide()
self.ui.Setting_widget.hide()
# self.lang_init_en()
print('Loading INI: '+str(time.time()-start)+' sec')
def lang_init_en(self):
@@ -334,7 +389,7 @@ If you do not download from the official website, we cannot guarantee the securi
_translate = QtCore.QCoreApplication.translate
if pyas_key():
self.ui.State_output.clear()
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5"))
now_time = datetime.datetime.now()
try:
ft = open('Library/PYAS/Temp/PYASP.tmp','r',encoding='utf-8')
@@ -345,8 +400,9 @@ If you do not download from the official website, we cannot guarantee the securi
pyas_bug_log(e)
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [Tips] Real-time Protect is not enabled')
#self.pyas_vl_update()
else:
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4 (Security Key Error)"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5 (Security Key Error)"))
now_time = datetime.datetime.now()
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [Warning] PYAS Security Key Error')
@@ -399,7 +455,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.More_Tools_Back.setText(_translate("MainWindow", "Back"))
self.ui.Look_for_File_Button.setText(_translate("MainWindow", "Looking For Profiles"))
self.ui.Encryption_Text_Button.setText(_translate("MainWindow", "Encrypt Decrypt Text"))
#self.ui.Decrypt_Text_Button.setText(_translate("MainWindow", "Decrypt Message"))
self.ui.Change_Users_Password_Button.setText(_translate("MainWindow", "Change User Password"))
self.ui.Internet_location_Query_Button.setText(_translate("MainWindow", "Internet Location Query"))
self.ui.Rework_Network_Configuration_Button.setText(_translate("MainWindow", "Rework Network Config"))
@@ -419,20 +474,24 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Encryption_Text_title.setText(_translate("MainWindow", "Before Encrypt & Decrypt"))
self.ui.Decrypt_Text_Run_Button.setText(_translate("MainWindow", "Encrypt"))
self.ui.About_Back.setText(_translate("MainWindow", "Back"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.5"))
self.ui.GUI_Made_title.setText(_translate("MainWindow", "GUI Make:"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129#3921"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129"))
self.ui.Core_Made_title.setText(_translate("MainWindow", "Core Make:"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "PYAS_Dev#0629"))
self.ui.Testers_title.setText(_translate("MainWindow", "Testers:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "mtkiao129#3921, PYAS_Dev#0629"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "87owo"))
self.ui.Testers_title.setText(_translate("MainWindow", "Data Make:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "yang5487"))
self.ui.PYAS_URL_title.setText(_translate("MainWindow", "Website:"))
self.ui.PYAS_URL.setText(_translate("MainWindow", "<html><head/><body><p><a href=\"https://pyantivirus.wixsite.com/pyas?lang=en\"><span style= \" text-decoration: underline; color:#0000ff;\">https://pyantivirus.wixsite.com/pyas</span></a></p></body></html>"))
cy = datetime.datetime.now().strftime('%Y')
if int(cy) < 2020:
cy = str('2020')
self.ui.PYAS_CopyRight.setText(_translate("MainWindow", "Copyright© 2020-"+str(cy)+" PYAS Security"))
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.7"))
try:
vl = open('Library/PYAE/Hashes/Viruslist.num','r').read()
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8 (Library Version: "+str(int(vl)-1)+")"))
except:
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8"))
self.ui.Change_Users_Password_Back.setText(_translate("MainWindow", "Back"))
self.ui.Change_Users_Password_New_Password_title.setText(_translate("MainWindow", "New password:"))
self.ui.Change_Users_Password_User_Name_title.setText(_translate("MainWindow", "Username:"))
@@ -471,7 +530,7 @@ If you do not download from the official website, we cannot guarantee the securi
_translate = QtCore.QCoreApplication.translate
if pyas_key():
self.ui.State_output.clear()
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5"))
now_time = datetime.datetime.now()
try:
ft = open('Library/PYAS/Temp/PYASP.tmp','r',encoding='utf-8')
@@ -483,7 +542,7 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [提示] 尚未启用实时防护')
else:
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4 (安全密钥错误)"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5 (安全密钥错误)"))
now_time = datetime.datetime.now()
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [警告] PYAS 安全密钥错误')
@@ -536,7 +595,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.More_Tools_Back.setText(_translate("MainWindow", "返回"))
self.ui.Look_for_File_Button.setText(_translate("MainWindow", "寻找本机档案"))
self.ui.Encryption_Text_Button.setText(_translate("MainWindow", "加密解密文字"))
#self.ui.Decrypt_Text_Button.setText(_translate("MainWindow", "解密文字讯息"))
self.ui.Change_Users_Password_Button.setText(_translate("MainWindow", "变更用户密码"))
self.ui.Internet_location_Query_Button.setText(_translate("MainWindow", "网路位置查询"))
self.ui.Rework_Network_Configuration_Button.setText(_translate("MainWindow", "重置网路配置"))
@@ -556,20 +614,24 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Encryption_Text_title.setText(_translate("MainWindow", "加密&解密前"))
self.ui.Decrypt_Text_Run_Button.setText(_translate("MainWindow", "解密"))
self.ui.About_Back.setText(_translate("MainWindow", "返回"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.5"))
self.ui.GUI_Made_title.setText(_translate("MainWindow", "介面制作:"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129#3921"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129"))
self.ui.Core_Made_title.setText(_translate("MainWindow", "核心制作:"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "PYAS_Dev#0629"))
self.ui.Testers_title.setText(_translate("MainWindow", "测试人员:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "mtkiao129#3921, PYAS_Dev#0629"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "87owo"))
self.ui.Testers_title.setText(_translate("MainWindow", "数据整理:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "yang5487"))
self.ui.PYAS_URL_title.setText(_translate("MainWindow", "官方网站:"))
self.ui.PYAS_URL.setText(_translate("MainWindow", "<html><head/><body><p><a href=\"https://pyantivirus.wixsite.com/pyas\"><span style=\" text-decoration: underline; color:#0000ff;\">https://pyantivirus.wixsite.com/pyas</span></a></p></body></html>"))
cy = datetime.datetime.now().strftime('%Y')
if int(cy) < 2020:
cy = str('2020')
self.ui.PYAS_CopyRight.setText(_translate("MainWindow", "Copyright© 2020-"+str(cy)+" PYAS Security"))
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.7"))
try:
vl = open('Library/PYAE/Hashes/Viruslist.num','r').read()
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8 (数据庫版本: "+str(int(vl)-1)+")"))
except:
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8"))
self.ui.Change_Users_Password_Back.setText(_translate("MainWindow", "返回"))
self.ui.Change_Users_Password_New_Password_title.setText(_translate("MainWindow", "新密码:"))
self.ui.Change_Users_Password_User_Name_title.setText(_translate("MainWindow", "用户名:"))
@@ -608,7 +670,7 @@ If you do not download from the official website, we cannot guarantee the securi
_translate = QtCore.QCoreApplication.translate
if pyas_key():
self.ui.State_output.clear()
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5"))
now_time = datetime.datetime.now()
try:
ft = open('Library/PYAS/Temp/PYASP.tmp','r',encoding='utf-8')
@@ -620,7 +682,7 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [提示] 尚未啟用實時防護')
else:
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.4 (安全密鑰錯誤)"))
self.ui.Window_title.setText(_translate("MainWindow", "PYAS V2.4.5 (安全密鑰錯誤)"))
now_time = datetime.datetime.now()
self.ui.State_output.clear()
self.ui.State_output.append(str(now_time.strftime('%Y/%m/%d %H:%M:%S')) + ' > [警告] PYAS 安全密鑰錯誤')
@@ -673,7 +735,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.More_Tools_Back.setText(_translate("MainWindow", "返回"))
self.ui.Look_for_File_Button.setText(_translate("MainWindow", "尋找本機檔案"))
self.ui.Encryption_Text_Button.setText(_translate("MainWindow", "加密解密文字"))
#self.ui.Decrypt_Text_Button.setText(_translate("MainWindow", "解密文字訊息"))
self.ui.Change_Users_Password_Button.setText(_translate("MainWindow", "變更用戶密碼"))
self.ui.Internet_location_Query_Button.setText(_translate("MainWindow", "網路位置查詢"))
self.ui.Rework_Network_Configuration_Button.setText(_translate("MainWindow", "重置網路配置"))
@@ -693,20 +754,24 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Encryption_Text_title.setText(_translate("MainWindow", "加密&解密前"))
self.ui.Decrypt_Text_Run_Button.setText(_translate("MainWindow", "解密"))
self.ui.About_Back.setText(_translate("MainWindow", "返回"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.4"))
self.ui.PYAS_Version.setText(_translate("MainWindow", "PYAS V2.4.5"))
self.ui.GUI_Made_title.setText(_translate("MainWindow", "介面製作:"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129#3921"))
self.ui.GUI_Made_Name.setText(_translate("MainWindow", "mtkiao129"))
self.ui.Core_Made_title.setText(_translate("MainWindow", "核心製作:"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "PYAS_Dev#0629"))
self.ui.Testers_title.setText(_translate("MainWindow", "測試人員:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "mtkiao129#3921, PYAS_Dev#0629"))
self.ui.Core_Made_Name.setText(_translate("MainWindow", "87owo"))
self.ui.Testers_title.setText(_translate("MainWindow", "數據整理:"))
self.ui.Testers_Name.setText(_translate("MainWindow", "yang5487"))
self.ui.PYAS_URL_title.setText(_translate("MainWindow", "官方網站:"))
self.ui.PYAS_URL.setText(_translate("MainWindow", "<html><head/><body><p><a href=\"https://pyantivirus.wixsite.com/pyas\"><span style=\" text-decoration: underline; color:#0000ff;\">https://pyantivirus.wixsite.com/pyas</span></a></p></body></html>"))
cy = datetime.datetime.now().strftime('%Y')
if int(cy) < 2020:
cy = str('2020')
self.ui.PYAS_CopyRight.setText(_translate("MainWindow", "Copyright© 2020-"+str(cy)+" PYAS Security"))
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.7"))
try:
vl = open('Library/PYAE/Hashes/Viruslist.num','r').read()
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8 (資料庫版本: "+str(int(vl)-1)+")"))
except:
self.ui.PYAE_Version.setText(_translate("MainWindow", "PYAE V1.2.8"))
self.ui.Change_Users_Password_Back.setText(_translate("MainWindow", "返回"))
self.ui.Change_Users_Password_New_Password_title.setText(_translate("MainWindow", "新密碼:"))
self.ui.Change_Users_Password_User_Name_title.setText(_translate("MainWindow", "用戶名:"))
@@ -751,7 +816,7 @@ If you do not download from the official website, we cannot guarantee the securi
else:
return text
########################################
####################################################################################
def Change_animation(self,widget):
x = 170
y = widget.pos().y()#獲取物件的y軸座標
@@ -956,7 +1021,7 @@ If you do not download from the official website, we cannot guarantee the securi
self.Change_animation(self.ui.Tools_widget)
self.ui.Tools_widget.show()
#########Virus_Scan###########
####################################### Virus_Scan #############################################
def Virus_Solve(self):
try:
for line in self.Virus_List:
@@ -1158,9 +1223,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Virus_Scan_Break_Button.hide()
break
fullpath = os.path.join(path,fd)
#if self.show_virus_scan_progress_bar != 0:
#self.quantity = self.quantity + 1
#self.ui.Virus_Scan_ProgressBar.setValue(self.quantity)
if os.path.isdir(fullpath):
self.pyas_scan_path_en(fullpath,rfp,rfn,fts)
else:
@@ -1178,7 +1240,6 @@ If you do not download from the official website, we cannot guarantee the securi
if str(function.name) in rfn:
fts = fts + 1
if fts != 0:
#QApplication.processEvents()
self.pyas_scan_write_en(str(fullpath))
fts = 0
except Exception as e:
@@ -1297,10 +1358,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.ui.Virus_Scan_choose_Button.hide()
self.ui.Virus_Scan_Break_Button.show()
QApplication.processEvents()
#if self.show_virus_scan_progress_bar != 0:
#self.quantity = 0
#self.ui.Virus_Scan_ProgressBar.setMaximum(len(self.list_allfile(file,[])))
#self.ui.Virus_Scan_ProgressBar.show()
try:
with open('Library/PYAE/Hashes/Viruslist.md5','r') as fp:
rfp = fp.read()
@@ -1455,16 +1512,6 @@ If you do not download from the official website, we cannot guarantee the securi
QApplication.processEvents()
if self.pyas_scan_start(fullpath,rfp):
self.pyas_scan_write_en(fullpath)
#elif '.zip' in str(fd) or '.ZIP' in str(fd):
#self.ui.Virus_Scan_text.setText(self.scaning+fullpath)
#QApplication.processEvents()
#if self.pyas_scan_start(fullpath,rfp):
#self.pyas_scan_write_en(fullpath)
#elif '.tmp' in str(fd) or '.TMP' in str(fd):
#self.ui.Virus_Scan_text.setText(self.scaning+fullpath)
#QApplication.processEvents()
#if self.pyas_scan_start(fullpath,rfp):
#self.pyas_scan_write_en(fullpath)
else:
pass
except Exception as e:
@@ -1483,7 +1530,7 @@ If you do not download from the official website, we cannot guarantee the securi
else:
self.ui.Virus_Scan_choose_widget.hide()
################Tools#################
######################################## Tools ############################################
def Repair_System_Permission(self):
#QMessageBox跟tkinter.messagebox是差不多的東西 yes的回傳值為16384
question = QMessageBox.warning(self,self.text_Translate('修復系統權限'),self.text_Translate("您確定要修復系統權限嗎?"),QMessageBox.Yes|QMessageBox.No,QMessageBox.Yes)
@@ -1736,11 +1783,68 @@ If you do not download from the official website, we cannot guarantee the securi
or CMD_Command == "PYAS" or CMD_Command == "pyas":
self.ui.Customize_CMD_Command_output.setText(english_list["PYAS"])
return
#if CMD_Command == "OLD" or CMD_Command == "old" \
#or CMD_Command == "TK" or CMD_Command == "tk" \
#or CMD_Command == "TKINTER" or CMD_Command == "tkinter":
#import PYAS_Old
#return
try:
if CMD_Command.split()[0] == "/add" or CMD_Command.split()[0] == "/ADD":
self.ui.Customize_CMD_Command_output.setText("Tips: Custom rules need to wait for the rule conditions to be met before proceeding to the next step.")
QApplication.processEvents()
if CMD_Command.split()[1] == "-library" or CMD_Command.split()[1] == "-LIBRARY":
if CMD_Command.split()[2] == "-md5" or CMD_Command.split()[2] == "-MD5":
try:
value = str(CMD_Command.split()[3])
with open('Library/PYAE/Hashes/Viruslist.md5','a') as vm:
vm.write(str(value)[:10]+'\n')
self.ui.Customize_CMD_Command_output.setText("Successfully added MD5 to the database!")
except:
self.ui.Customize_CMD_Command_output.setText("Error: Add failed!")
return
if CMD_Command.split()[2] == "-func" or CMD_Command.split()[2] == "-FUNC":
try:
value = CMD_Command.split()[3]
with open('Library/PYAE/Function/Viruslist.func','a') as vm:
vm.write(str(value)+'\n')
self.ui.Customize_CMD_Command_output.setText("Successfully added Function to the database!")
except:
self.ui.Customize_CMD_Command_output.setText("Error: Add failed!")
return
if CMD_Command.split()[1] == "-rules" or CMD_Command.split()[1] == "-RULES":
if CMD_Command.split()[2] == "-reg" or CMD_Command.split()[2] == "-REG":
value = CMD_Command.split()[3]
if CMD_Command.split()[2] == "-perf" or CMD_Command.split()[2] == "-PERF":
value = CMD_Command.split()[3]
#return
while 1:
x = int(psutil.cpu_percent(interval=0.1))
if x > int(value):
print(str(x))
try:
pygame.mixer.init()
if not pygame.mixer.music.get_busy():
pygame.mixer.music.load('./Library/PYAS/Audio/Askaction.ogg')
pygame.mixer.music.play()
self.ui.Customize_CMD_Command_output.setText('CPU Used: '+str(x)+'% > '+str(value)+'%')
except Exception as e:
print('Error: '+str(e))
return
if CMD_Command.split()[2] == "-file" or CMD_Command.split()[2] == "-FILE":
value = CMD_Command.split()[3]
if CMD_Command.split()[2] == "-task" or CMD_Command.split()[2] == "-TASK":
value = CMD_Command.split()[3]
while 1:
for p in psutil.process_iter():
if str(value) == str(p.name()):
try:
pygame.mixer.init()
if not pygame.mixer.music.get_busy():
pygame.mixer.music.load('./Library/PYAS/Audio/Askaction.ogg')
pygame.mixer.music.play()
self.ui.Customize_CMD_Command_output.setText(str(value)+' detected in process.')
except Exception as e:
print('Error: '+str(e))
return
except Exception as e:
print('Error: '+str(e))
QMessageBox.critical(self,self.text_Translate('錯誤'), '\"' + CMD_Command + '\"' + self.text_Translate("不是有效命令"),QMessageBox.Ok,QMessageBox.Ok)
return
if CMD_Command != '':
try:
si = subprocess.STARTUPINFO()
@@ -1750,14 +1854,11 @@ If you do not download from the official website, we cannot guarantee the securi
stdout=subprocess.PIPE,
)#encoding='utf-8')
out = p.stdout.read()
#self.ui.Customize_CMD_Command_output.clear()
try:
self.ui.Customize_CMD_Command_output.setText(str(out.decode('utf-8')))
except Exception as e:
print(e)
self.ui.Customize_CMD_Command_output.setText(str(out))
#for out in p.stdout.readlines():
#self.ui.Customize_CMD_Command_output.append(str(out.decode('utf-8')))
QMessageBox.information(self,self.text_Translate("完成"),self.text_Translate("運行成功"),QMessageBox.Ok,QMessageBox.Ok)
except Exception as e:
print('Error: '+str(e))
@@ -1927,14 +2028,12 @@ If you do not download from the official website, we cannot guarantee the securi
date = time.ctime(os.path.getmtime(fullpath))
try:
ft = open('Library/PYAS/Temp/PYASF.tmp','a',encoding="utf-8")
#print(str(self.text_Translate('找到檔案:')+str(fullpath)+'\n'+self.text_Translate('創建日期:')+str(date)+'\n'+'\n'))
ft.write(str(self.text_Translate('找到檔案:')+str(fullpath)+'\n'+self.text_Translate('創建日期:')+str(date)+'\n'+'\n'))
ft.close()
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
ft = open('C:/Program Files (x86)/PYAS/Library/PYAS/Temp/PYASF.tmp','a',encoding="utf-8")
#print(str(self.text_Translate('找到檔案:')+str(fullpath)+'\n'+self.text_Translate('創建日期:')+str(date)+'\n'+'\n'))
ft.write(str(self.text_Translate('找到檔案:')+str(fullpath)+'\n'+self.text_Translate('創建日期:')+str(date)+'\n'+'\n'))
ft.close()
continue
@@ -2052,7 +2151,7 @@ If you do not download from the official website, we cannot guarantee the securi
print('Error: '+str(e))
pyas_bug_log(e)
pass
################實時防護##################
######################################## Realtime protect ############################################
def protect_threading_init_zh(self):
if self.ui.Protection_switch_Button.text() == self.text_Translate("已開啟"):
@@ -2134,9 +2233,6 @@ If you do not download from the official website, we cannot guarantee the securi
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
#with open('C:/Program Files (x86)/PYAS/Library/PYAE/Hashes/Viruslist.md5','r') as fp:
#rfp = fp.read()
#fp.close()
self.Virus_Scan = 1
if self.ui.Protection_switch_Button.text() == self.text_Translate("已關閉"):
self.ui.Protection_illustrate.setText(self.text_Translate("啟用該選項可以實時監控進程中的惡意軟體並清除。"))
@@ -2185,7 +2281,6 @@ If you do not download from the official website, we cannot guarantee the securi
sys.exit()
self.Virus_Scan = 1
for p in psutil.process_iter():
#QApplication.processEvents()
try:
if 'C:\Windows' in str(p.exe()):
pass
@@ -2240,7 +2335,7 @@ If you do not download from the official website, we cannot guarantee the securi
pyas_bug_log(e)
break
#############設定###############
######################################## Settings ############################################
def ShowMenu(self):
self.WindowMenu = QMenu()
Main_Settings = QAction(self.text_Translate("設定"),self)
@@ -2388,7 +2483,6 @@ If you do not download from the official website, we cannot guarantee the securi
}
""")
self.show_virus_scan_progress_bar = 0
#print(str(self.ui.Show_Virus_Scan_Progress_Bar_switch_Button.text()))
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
@@ -2432,7 +2526,6 @@ If you do not download from the official website, we cannot guarantee the securi
except Exception as e:
print('Error: '+str(e))
pyas_bug_log(e)
#QMessageBox.critical(self,"Error: ",str(e),QMessageBox.Ok)
try:
try:
self.ini_config.write(open(r"./Library/PYAS/Setup/PYAS.ini", 'w'))
@@ -2526,7 +2619,7 @@ If you do not download from the official website, we cannot guarantee the securi
""")
return
##################################################################################################
############################################## Event ####################################################
def mousePressEvent(self, event):
x = event.x()
y = event.y()
@@ -2550,20 +2643,6 @@ If you do not download from the official website, we cannot guarantee the securi
self.setCursor(QCursor(Qt.ArrowCursor))
def paintEvent(self, event):
# path = QPainterPath()
# path.setFillRule(Qt.WindingFill)
# pat = QPainter(self)
# pat.setRenderHint(pat.Antialiasing)
# pat.fillPath(path, QBrush(Qt.white))
# color = QColor(0, 0, 0, 20)
# i_path = QPainterPath()
# i_path.setFillRule(Qt.WindingFill)
# ref = QRectF(10-1, 10-1, self.width()-(10-1)*2, self.height()-(10-1)*2)
# i_path.addRect(ref)
# color.setAlpha(150 - 1**0.5*50)
# pat.setPen(color)
# pat.drawPath(i_path)
# 添加阴影
# 圓角
pat2 = QPainter(self)
@@ -2576,7 +2655,9 @@ If you do not download from the official website, we cannot guarantee the securi
rect.setWidth(rect.width()-10)
rect.setHeight(rect.height()-10)
pat2.drawRoundedRect(rect, 1, 1)
############################################## Main ####################################################
if __name__ == '__main__':
try:
os.remove('Library/PYAS/Temp/PYASP.tmp')
@@ -2588,8 +2669,13 @@ if __name__ == '__main__':
except Exception as e:
print('Error: '+str(e))
pass
update = threading.Thread(target = pyas_vl_update)
update.start()
import sys
app = QtWidgets.QApplication(sys.argv)
window = MainWindow_Controller()
window.show()
sys.exit(app.exec_())
####################################################################################
#Copyright© 2020-2022 PYAS Python Antivirus Software.
+113 -94
View File
@@ -21,6 +21,9 @@ class Ui_MainWindow(object):
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
MainWindow.setFont(font)
MainWindow.setFocusPolicy(QtCore.Qt.TabFocus)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("C:\\Users\\Windows\\Documents\\Python\\PYDT開發團隊\\PYAS防毒軟體\\PYAS_程式碼\\Library/Icon/ICON.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setIconSize(QtCore.QSize(24, 24))
MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
MainWindow.setDocumentMode(False)
@@ -50,7 +53,7 @@ class Ui_MainWindow(object):
self.Show_Virus_Scan_Progress_Bar.setAutoFillBackground(False)
self.Show_Virus_Scan_Progress_Bar.setObjectName("Show_Virus_Scan_Progress_Bar")
self.Show_Virus_Scan_Progress_Bar_title = QtWidgets.QLabel(self.Show_Virus_Scan_Progress_Bar)
self.Show_Virus_Scan_Progress_Bar_title.setGeometry(QtCore.QRect(20, 10, 351, 41))
self.Show_Virus_Scan_Progress_Bar_title.setGeometry(QtCore.QRect(20, 10, 411, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(18)
@@ -60,7 +63,7 @@ class Ui_MainWindow(object):
self.Show_Virus_Scan_Progress_Bar_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Show_Virus_Scan_Progress_Bar_title.setObjectName("Show_Virus_Scan_Progress_Bar_title")
self.Show_Virus_Scan_Progress_Bar_illustrate = QtWidgets.QLabel(self.Show_Virus_Scan_Progress_Bar)
self.Show_Virus_Scan_Progress_Bar_illustrate.setGeometry(QtCore.QRect(20, 50, 521, 41))
self.Show_Virus_Scan_Progress_Bar_illustrate.setGeometry(QtCore.QRect(20, 50, 521, 51))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -98,7 +101,7 @@ class Ui_MainWindow(object):
self.Show_Virus_Scan_Progress_Bar_switch_Button.setCheckable(False)
self.Show_Virus_Scan_Progress_Bar_switch_Button.setObjectName("Show_Virus_Scan_Progress_Bar_switch_Button")
self.Setting_Back = QtWidgets.QPushButton(self.Setting_widget)
self.Setting_Back.setGeometry(QtCore.QRect(20, 10, 81, 41))
self.Setting_Back.setGeometry(QtCore.QRect(20, 10, 101, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -121,9 +124,9 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/Icon/exit2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Setting_Back.setIcon(icon)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icon/Icon/exit2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Setting_Back.setIcon(icon1)
self.Setting_Back.setIconSize(QtCore.QSize(20, 20))
self.Setting_Back.setCheckable(False)
self.Setting_Back.setObjectName("Setting_Back")
@@ -133,7 +136,7 @@ class Ui_MainWindow(object):
self.Llanguage_widget.setAutoFillBackground(False)
self.Llanguage_widget.setObjectName("Llanguage_widget")
self.Language_title = QtWidgets.QLabel(self.Llanguage_widget)
self.Language_title.setGeometry(QtCore.QRect(20, 10, 161, 41))
self.Language_title.setGeometry(QtCore.QRect(20, 10, 321, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(18)
@@ -143,7 +146,7 @@ class Ui_MainWindow(object):
self.Language_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Language_title.setObjectName("Language_title")
self.Language_illustrate = QtWidgets.QLabel(self.Llanguage_widget)
self.Language_illustrate.setGeometry(QtCore.QRect(20, 50, 181, 41))
self.Language_illustrate.setGeometry(QtCore.QRect(20, 50, 321, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -155,18 +158,23 @@ class Ui_MainWindow(object):
self.Language_illustrate.setWordWrap(True)
self.Language_illustrate.setObjectName("Language_illustrate")
self.Language_Choose_widget = QtWidgets.QWidget(self.Llanguage_widget)
self.Language_Choose_widget.setGeometry(QtCore.QRect(470, 0, 321, 101))
self.Language_Choose_widget.setGeometry(QtCore.QRect(350, 0, 441, 101))
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
self.Language_Choose_widget.setFont(font)
self.Language_Choose_widget.setObjectName("Language_Choose_widget")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.Language_Choose_widget)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 301, 81))
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 10, 421, 81))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.Language_Traditional_Chinese = QtWidgets.QRadioButton(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Language_Traditional_Chinese.sizePolicy().hasHeightForWidth())
self.Language_Traditional_Chinese.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -175,6 +183,11 @@ class Ui_MainWindow(object):
self.Language_Traditional_Chinese.setObjectName("Language_Traditional_Chinese")
self.horizontalLayout.addWidget(self.Language_Traditional_Chinese)
self.Language_Simplified_Chinese = QtWidgets.QRadioButton(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Language_Simplified_Chinese.sizePolicy().hasHeightForWidth())
self.Language_Simplified_Chinese.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -183,6 +196,11 @@ class Ui_MainWindow(object):
self.Language_Simplified_Chinese.setObjectName("Language_Simplified_Chinese")
self.horizontalLayout.addWidget(self.Language_Simplified_Chinese)
self.Languahe_English = QtWidgets.QRadioButton(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Languahe_English.sizePolicy().hasHeightForWidth())
self.Languahe_English.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -193,7 +211,7 @@ class Ui_MainWindow(object):
self.Theme_widget.setGeometry(QtCore.QRect(20, 160, 791, 101))
self.Theme_widget.setObjectName("Theme_widget")
self.Theme_title = QtWidgets.QLabel(self.Theme_widget)
self.Theme_title.setGeometry(QtCore.QRect(20, 10, 291, 41))
self.Theme_title.setGeometry(QtCore.QRect(20, 10, 351, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(18)
@@ -203,7 +221,7 @@ class Ui_MainWindow(object):
self.Theme_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Theme_title.setObjectName("Theme_title")
self.Theme_illustrate = QtWidgets.QLabel(self.Theme_widget)
self.Theme_illustrate.setGeometry(QtCore.QRect(20, 50, 291, 41))
self.Theme_illustrate.setGeometry(QtCore.QRect(20, 50, 351, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -215,13 +233,13 @@ class Ui_MainWindow(object):
self.Theme_illustrate.setWordWrap(True)
self.Theme_illustrate.setObjectName("Theme_illustrate")
self.Language_Choose_widget_2 = QtWidgets.QWidget(self.Theme_widget)
self.Language_Choose_widget_2.setGeometry(QtCore.QRect(470, 0, 321, 101))
self.Language_Choose_widget_2.setGeometry(QtCore.QRect(390, 0, 391, 101))
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
self.Language_Choose_widget_2.setFont(font)
self.Language_Choose_widget_2.setObjectName("Language_Choose_widget_2")
self.gridLayoutWidget = QtWidgets.QWidget(self.Language_Choose_widget_2)
self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 10, 301, 80))
self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 10, 381, 80))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
@@ -283,7 +301,7 @@ class Ui_MainWindow(object):
self.More_Tools_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.More_Tools_widget.setObjectName("More_Tools_widget")
self.More_Tools_Back = QtWidgets.QPushButton(self.More_Tools_widget)
self.More_Tools_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.More_Tools_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -306,7 +324,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.More_Tools_Back.setIcon(icon)
self.More_Tools_Back.setIcon(icon1)
self.More_Tools_Back.setIconSize(QtCore.QSize(20, 20))
self.More_Tools_Back.setCheckable(False)
self.More_Tools_Back.setObjectName("More_Tools_Back")
@@ -477,7 +495,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Encryption_Text_widget.setObjectName("Encryption_Text_widget")
self.Encryption_Text_Back = QtWidgets.QPushButton(self.Encryption_Text_widget)
self.Encryption_Text_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Encryption_Text_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -500,12 +518,12 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Encryption_Text_Back.setIcon(icon)
self.Encryption_Text_Back.setIcon(icon1)
self.Encryption_Text_Back.setIconSize(QtCore.QSize(20, 20))
self.Encryption_Text_Back.setCheckable(False)
self.Encryption_Text_Back.setObjectName("Encryption_Text_Back")
self.Encryption_Text_Run_Button = QtWidgets.QPushButton(self.Encryption_Text_widget)
self.Encryption_Text_Run_Button.setGeometry(QtCore.QRect(420, 400, 91, 31))
self.Encryption_Text_Run_Button.setGeometry(QtCore.QRect(430, 400, 101, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -551,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(110, 400, 191, 31))
self.Encryption_Text_Password_input.setGeometry(QtCore.QRect(160, 400, 261, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -559,7 +577,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_Password_input.setFont(font)
self.Encryption_Text_Password_input.setObjectName("Encryption_Text_Password_input")
self.Encryption_Text_title2 = QtWidgets.QLabel(self.Encryption_Text_widget)
self.Encryption_Text_title2.setGeometry(QtCore.QRect(340, 60, 261, 31))
self.Encryption_Text_title2.setGeometry(QtCore.QRect(340, 60, 311, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -570,7 +588,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_title2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Encryption_Text_title2.setObjectName("Encryption_Text_title2")
self.Encryption_Text_Password_title = QtWidgets.QLabel(self.Encryption_Text_widget)
self.Encryption_Text_Password_title.setGeometry(QtCore.QRect(20, 400, 81, 31))
self.Encryption_Text_Password_title.setGeometry(QtCore.QRect(20, 400, 131, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -581,7 +599,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_Password_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Encryption_Text_Password_title.setObjectName("Encryption_Text_Password_title")
self.Encryption_Text_title = QtWidgets.QLabel(self.Encryption_Text_widget)
self.Encryption_Text_title.setGeometry(QtCore.QRect(20, 60, 201, 31))
self.Encryption_Text_title.setGeometry(QtCore.QRect(20, 60, 271, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -592,7 +610,7 @@ class Ui_MainWindow(object):
self.Encryption_Text_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Encryption_Text_title.setObjectName("Encryption_Text_title")
self.Decrypt_Text_Run_Button = QtWidgets.QPushButton(self.Encryption_Text_widget)
self.Decrypt_Text_Run_Button.setGeometry(QtCore.QRect(320, 400, 91, 31))
self.Decrypt_Text_Run_Button.setGeometry(QtCore.QRect(550, 400, 101, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -631,8 +649,9 @@ class Ui_MainWindow(object):
self.Protection_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Protection_widget.setObjectName("Protection_widget")
self.Real_time_Protection_widget = QtWidgets.QWidget(self.Protection_widget)
self.Real_time_Protection_widget.setGeometry(QtCore.QRect(30, 20, 611, 101))
self.Real_time_Protection_widget.setGeometry(QtCore.QRect(30, 30, 611, 101))
self.Real_time_Protection_widget.setAcceptDrops(False)
self.Real_time_Protection_widget.setLayoutDirection(QtCore.Qt.RightToLeft)
self.Real_time_Protection_widget.setAutoFillBackground(False)
self.Real_time_Protection_widget.setObjectName("Real_time_Protection_widget")
self.Protection_title = QtWidgets.QLabel(self.Real_time_Protection_widget)
@@ -646,7 +665,7 @@ class Ui_MainWindow(object):
self.Protection_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Protection_title.setObjectName("Protection_title")
self.Protection_illustrate = QtWidgets.QLabel(self.Real_time_Protection_widget)
self.Protection_illustrate.setGeometry(QtCore.QRect(20, 50, 421, 41))
self.Protection_illustrate.setGeometry(QtCore.QRect(20, 50, 421, 51))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -864,7 +883,7 @@ class Ui_MainWindow(object):
self.Virus_Scan_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Virus_Scan_widget.setObjectName("Virus_Scan_widget")
self.Virus_Scan_title = QtWidgets.QLabel(self.Virus_Scan_widget)
self.Virus_Scan_title.setGeometry(QtCore.QRect(45, 40, 131, 41))
self.Virus_Scan_title.setGeometry(QtCore.QRect(45, 40, 201, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(18)
@@ -873,7 +892,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, 90, 581, 61))
self.Virus_Scan_text.setGeometry(QtCore.QRect(45, 90, 581, 71))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -908,9 +927,9 @@ class Ui_MainWindow(object):
"{\n"
" background-color:rgba(100,220,100,200);\n"
"}")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icon/Icon/multimedia.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Virus_Scan_choose_Button.setIcon(icon1)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icon/Icon/multimedia.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Virus_Scan_choose_Button.setIcon(icon2)
self.Virus_Scan_choose_Button.setIconSize(QtCore.QSize(10, 10))
self.Virus_Scan_choose_Button.setCheckable(False)
self.Virus_Scan_choose_Button.setAutoRepeat(False)
@@ -1192,7 +1211,7 @@ class Ui_MainWindow(object):
self.Change_Users_Password_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Change_Users_Password_widget.setObjectName("Change_Users_Password_widget")
self.Change_Users_Password_Back = QtWidgets.QPushButton(self.Change_Users_Password_widget)
self.Change_Users_Password_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Change_Users_Password_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1215,19 +1234,19 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Change_Users_Password_Back.setIcon(icon)
self.Change_Users_Password_Back.setIcon(icon1)
self.Change_Users_Password_Back.setIconSize(QtCore.QSize(20, 20))
self.Change_Users_Password_Back.setCheckable(False)
self.Change_Users_Password_Back.setObjectName("Change_Users_Password_Back")
self.Change_Users_Password_New_Password_input = QtWidgets.QLineEdit(self.Change_Users_Password_widget)
self.Change_Users_Password_New_Password_input.setGeometry(QtCore.QRect(30, 200, 161, 31))
self.Change_Users_Password_New_Password_input.setGeometry(QtCore.QRect(30, 200, 471, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
self.Change_Users_Password_New_Password_input.setFont(font)
self.Change_Users_Password_New_Password_input.setObjectName("Change_Users_Password_New_Password_input")
self.Change_Users_Password_New_Password_title = QtWidgets.QLabel(self.Change_Users_Password_widget)
self.Change_Users_Password_New_Password_title.setGeometry(QtCore.QRect(30, 160, 141, 31))
self.Change_Users_Password_New_Password_title.setGeometry(QtCore.QRect(30, 160, 471, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1238,7 +1257,7 @@ class Ui_MainWindow(object):
self.Change_Users_Password_New_Password_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Change_Users_Password_New_Password_title.setObjectName("Change_Users_Password_New_Password_title")
self.Change_Users_Password_User_Name_title = QtWidgets.QLabel(self.Change_Users_Password_widget)
self.Change_Users_Password_User_Name_title.setGeometry(QtCore.QRect(30, 80, 161, 31))
self.Change_Users_Password_User_Name_title.setGeometry(QtCore.QRect(30, 80, 471, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1249,14 +1268,14 @@ class Ui_MainWindow(object):
self.Change_Users_Password_User_Name_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Change_Users_Password_User_Name_title.setObjectName("Change_Users_Password_User_Name_title")
self.Change_Users_Password_User_Name_input = QtWidgets.QLineEdit(self.Change_Users_Password_widget)
self.Change_Users_Password_User_Name_input.setGeometry(QtCore.QRect(30, 120, 161, 31))
self.Change_Users_Password_User_Name_input.setGeometry(QtCore.QRect(30, 120, 471, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
self.Change_Users_Password_User_Name_input.setFont(font)
self.Change_Users_Password_User_Name_input.setObjectName("Change_Users_Password_User_Name_input")
self.Change_Users_Password_Run_Button = QtWidgets.QPushButton(self.Change_Users_Password_widget)
self.Change_Users_Password_Run_Button.setGeometry(QtCore.QRect(210, 140, 81, 31))
self.Change_Users_Password_Run_Button.setGeometry(QtCore.QRect(520, 140, 91, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1295,7 +1314,7 @@ class Ui_MainWindow(object):
self.System_Info_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.System_Info_widget.setObjectName("System_Info_widget")
self.System_Info_Back = QtWidgets.QPushButton(self.System_Info_widget)
self.System_Info_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.System_Info_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1318,7 +1337,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.System_Info_Back.setIcon(icon)
self.System_Info_Back.setIcon(icon1)
self.System_Info_Back.setIconSize(QtCore.QSize(20, 20))
self.System_Info_Back.setCheckable(False)
self.System_Info_Back.setObjectName("System_Info_Back")
@@ -1341,7 +1360,7 @@ class Ui_MainWindow(object):
self.Develop_Tools_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Develop_Tools_widget.setObjectName("Develop_Tools_widget")
self.Develop_Tools_Back = QtWidgets.QPushButton(self.Develop_Tools_widget)
self.Develop_Tools_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Develop_Tools_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1364,7 +1383,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Develop_Tools_Back.setIcon(icon)
self.Develop_Tools_Back.setIcon(icon1)
self.Develop_Tools_Back.setIconSize(QtCore.QSize(20, 20))
self.Develop_Tools_Back.setCheckable(False)
self.Develop_Tools_Back.setObjectName("Develop_Tools_Back")
@@ -1535,7 +1554,7 @@ class Ui_MainWindow(object):
self.Look_for_File_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Look_for_File_widget.setObjectName("Look_for_File_widget")
self.Look_for_File_Back = QtWidgets.QPushButton(self.Look_for_File_widget)
self.Look_for_File_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Look_for_File_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1558,7 +1577,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Look_for_File_Back.setIcon(icon)
self.Look_for_File_Back.setIcon(icon1)
self.Look_for_File_Back.setIconSize(QtCore.QSize(20, 20))
self.Look_for_File_Back.setCheckable(False)
self.Look_for_File_Back.setObjectName("Look_for_File_Back")
@@ -1608,7 +1627,7 @@ class Ui_MainWindow(object):
self.Privacy_Tools_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Privacy_Tools_widget.setObjectName("Privacy_Tools_widget")
self.Privacy_Tools_Back = QtWidgets.QPushButton(self.Privacy_Tools_widget)
self.Privacy_Tools_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Privacy_Tools_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1631,7 +1650,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Privacy_Tools_Back.setIcon(icon)
self.Privacy_Tools_Back.setIcon(icon1)
self.Privacy_Tools_Back.setIconSize(QtCore.QSize(20, 20))
self.Privacy_Tools_Back.setCheckable(False)
self.Privacy_Tools_Back.setObjectName("Privacy_Tools_Back")
@@ -1682,7 +1701,7 @@ class Ui_MainWindow(object):
self.About_widget.setStyleSheet("background-color:rgba(255, 255, 255,255);")
self.About_widget.setObjectName("About_widget")
self.About_Back = QtWidgets.QPushButton(self.About_widget)
self.About_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.About_Back.setGeometry(QtCore.QRect(10, 10, 91, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1705,12 +1724,12 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.About_Back.setIcon(icon)
self.About_Back.setIcon(icon1)
self.About_Back.setIconSize(QtCore.QSize(20, 20))
self.About_Back.setCheckable(False)
self.About_Back.setObjectName("About_Back")
self.PYAS_Version = QtWidgets.QLabel(self.About_widget)
self.PYAS_Version.setGeometry(QtCore.QRect(20, 60, 141, 41))
self.PYAS_Version.setGeometry(QtCore.QRect(20, 60, 131, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(14)
@@ -1722,7 +1741,7 @@ class Ui_MainWindow(object):
self.PYAS_Version.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.PYAS_Version.setObjectName("PYAS_Version")
self.GUI_Made_title = QtWidgets.QLabel(self.About_widget)
self.GUI_Made_title.setGeometry(QtCore.QRect(20, 110, 101, 41))
self.GUI_Made_title.setGeometry(QtCore.QRect(20, 110, 131, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1733,7 +1752,7 @@ class Ui_MainWindow(object):
self.GUI_Made_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.GUI_Made_title.setObjectName("GUI_Made_title")
self.GUI_Made_Name = QtWidgets.QLabel(self.About_widget)
self.GUI_Made_Name.setGeometry(QtCore.QRect(130, 110, 491, 41))
self.GUI_Made_Name.setGeometry(QtCore.QRect(160, 110, 461, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1744,7 +1763,7 @@ class Ui_MainWindow(object):
self.GUI_Made_Name.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.GUI_Made_Name.setObjectName("GUI_Made_Name")
self.Core_Made_title = QtWidgets.QLabel(self.About_widget)
self.Core_Made_title.setGeometry(QtCore.QRect(20, 160, 101, 41))
self.Core_Made_title.setGeometry(QtCore.QRect(20, 160, 131, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1755,7 +1774,7 @@ class Ui_MainWindow(object):
self.Core_Made_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Core_Made_title.setObjectName("Core_Made_title")
self.Core_Made_Name = QtWidgets.QLabel(self.About_widget)
self.Core_Made_Name.setGeometry(QtCore.QRect(130, 160, 491, 41))
self.Core_Made_Name.setGeometry(QtCore.QRect(160, 160, 461, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1766,7 +1785,7 @@ class Ui_MainWindow(object):
self.Core_Made_Name.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Core_Made_Name.setObjectName("Core_Made_Name")
self.Testers_title = QtWidgets.QLabel(self.About_widget)
self.Testers_title.setGeometry(QtCore.QRect(20, 210, 101, 41))
self.Testers_title.setGeometry(QtCore.QRect(20, 210, 131, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1777,7 +1796,7 @@ class Ui_MainWindow(object):
self.Testers_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Testers_title.setObjectName("Testers_title")
self.Testers_Name = QtWidgets.QLabel(self.About_widget)
self.Testers_Name.setGeometry(QtCore.QRect(130, 210, 491, 41))
self.Testers_Name.setGeometry(QtCore.QRect(160, 210, 461, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1799,7 +1818,7 @@ class Ui_MainWindow(object):
self.PYAS_URL_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.PYAS_URL_title.setObjectName("PYAS_URL_title")
self.PYAS_URL = QtWidgets.QLabel(self.About_widget)
self.PYAS_URL.setGeometry(QtCore.QRect(130, 260, 321, 41))
self.PYAS_URL.setGeometry(QtCore.QRect(160, 260, 461, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1822,7 +1841,7 @@ class Ui_MainWindow(object):
self.PYAS_CopyRight.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.PYAS_CopyRight.setObjectName("PYAS_CopyRight")
self.PYAE_Version = QtWidgets.QLabel(self.About_widget)
self.PYAE_Version.setGeometry(QtCore.QRect(160, 60, 121, 41))
self.PYAE_Version.setGeometry(QtCore.QRect(160, 60, 461, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(14)
@@ -1839,7 +1858,7 @@ class Ui_MainWindow(object):
self.License_terms.setReadOnly(True)
self.License_terms.setObjectName("License_terms")
self.License_terms_title = QtWidgets.QLabel(self.About_widget)
self.License_terms_title.setGeometry(QtCore.QRect(20, 310, 171, 31))
self.License_terms_title.setGeometry(QtCore.QRect(20, 310, 211, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(13)
@@ -1859,7 +1878,7 @@ class Ui_MainWindow(object):
self.Customize_REG_Command_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Customize_REG_Command_widget.setObjectName("Customize_REG_Command_widget")
self.Customize_REG_Command_Back = QtWidgets.QPushButton(self.Customize_REG_Command_widget)
self.Customize_REG_Command_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Customize_REG_Command_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -1882,12 +1901,12 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Customize_REG_Command_Back.setIcon(icon)
self.Customize_REG_Command_Back.setIcon(icon1)
self.Customize_REG_Command_Back.setIconSize(QtCore.QSize(20, 20))
self.Customize_REG_Command_Back.setCheckable(False)
self.Customize_REG_Command_Back.setObjectName("Customize_REG_Command_Back")
self.Value_Path_title = QtWidgets.QLabel(self.Customize_REG_Command_widget)
self.Value_Path_title.setGeometry(QtCore.QRect(90, 80, 101, 31))
self.Value_Path_title.setGeometry(QtCore.QRect(30, 80, 161, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1898,7 +1917,7 @@ class Ui_MainWindow(object):
self.Value_Path_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Value_Path_title.setObjectName("Value_Path_title")
self.Value_Name_title = QtWidgets.QLabel(self.Customize_REG_Command_widget)
self.Value_Name_title.setGeometry(QtCore.QRect(90, 120, 101, 31))
self.Value_Name_title.setGeometry(QtCore.QRect(30, 120, 161, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1909,7 +1928,7 @@ class Ui_MainWindow(object):
self.Value_Name_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Value_Name_title.setObjectName("Value_Name_title")
self.Value_Type_title = QtWidgets.QLabel(self.Customize_REG_Command_widget)
self.Value_Type_title.setGeometry(QtCore.QRect(90, 160, 101, 31))
self.Value_Type_title.setGeometry(QtCore.QRect(30, 160, 161, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1920,7 +1939,7 @@ class Ui_MainWindow(object):
self.Value_Type_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Value_Type_title.setObjectName("Value_Type_title")
self.Value_Data_title = QtWidgets.QLabel(self.Customize_REG_Command_widget)
self.Value_Data_title.setGeometry(QtCore.QRect(90, 200, 101, 31))
self.Value_Data_title.setGeometry(QtCore.QRect(30, 200, 161, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -1931,7 +1950,7 @@ class Ui_MainWindow(object):
self.Value_Data_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Value_Data_title.setObjectName("Value_Data_title")
self.Value_Path_input = QtWidgets.QLineEdit(self.Customize_REG_Command_widget)
self.Value_Path_input.setGeometry(QtCore.QRect(210, 80, 221, 31))
self.Value_Path_input.setGeometry(QtCore.QRect(210, 80, 431, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -1939,7 +1958,7 @@ class Ui_MainWindow(object):
self.Value_Path_input.setFont(font)
self.Value_Path_input.setObjectName("Value_Path_input")
self.Value_Type_input = QtWidgets.QLineEdit(self.Customize_REG_Command_widget)
self.Value_Type_input.setGeometry(QtCore.QRect(210, 160, 221, 31))
self.Value_Type_input.setGeometry(QtCore.QRect(210, 160, 431, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -1947,7 +1966,7 @@ class Ui_MainWindow(object):
self.Value_Type_input.setFont(font)
self.Value_Type_input.setObjectName("Value_Type_input")
self.Value_Name_input = QtWidgets.QLineEdit(self.Customize_REG_Command_widget)
self.Value_Name_input.setGeometry(QtCore.QRect(210, 120, 221, 31))
self.Value_Name_input.setGeometry(QtCore.QRect(210, 120, 431, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -1955,7 +1974,7 @@ class Ui_MainWindow(object):
self.Value_Name_input.setFont(font)
self.Value_Name_input.setObjectName("Value_Name_input")
self.Value_Data_input = QtWidgets.QLineEdit(self.Customize_REG_Command_widget)
self.Value_Data_input.setGeometry(QtCore.QRect(210, 200, 221, 31))
self.Value_Data_input.setGeometry(QtCore.QRect(210, 200, 431, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -1993,7 +2012,7 @@ class Ui_MainWindow(object):
self.Customize_REG_Command_Run_Button.setCheckable(False)
self.Customize_REG_Command_Run_Button.setObjectName("Customize_REG_Command_Run_Button")
self.Value_HEKY_title = QtWidgets.QLabel(self.Customize_REG_Command_widget)
self.Value_HEKY_title.setGeometry(QtCore.QRect(90, 240, 101, 31))
self.Value_HEKY_title.setGeometry(QtCore.QRect(30, 240, 161, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -2004,7 +2023,7 @@ class Ui_MainWindow(object):
self.Value_HEKY_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Value_HEKY_title.setObjectName("Value_HEKY_title")
self.Value_HEKY_input = QtWidgets.QLineEdit(self.Customize_REG_Command_widget)
self.Value_HEKY_input.setGeometry(QtCore.QRect(210, 240, 221, 31))
self.Value_HEKY_input.setGeometry(QtCore.QRect(210, 240, 431, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -2052,9 +2071,9 @@ class Ui_MainWindow(object):
" background-color:rgba(255, 255, 255,220);\n"
"}")
self.Close_Button.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icon/Icon/X.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Close_Button.setIcon(icon2)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icon/Icon/X.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Close_Button.setIcon(icon3)
self.Close_Button.setIconSize(QtCore.QSize(13, 13))
self.Close_Button.setCheckable(False)
self.Close_Button.setObjectName("Close_Button")
@@ -2086,9 +2105,9 @@ class Ui_MainWindow(object):
" background-color:rgba(255, 255, 255,220);\n"
"}")
self.Minimize_Button.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icon/Icon/minimizeIcon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Minimize_Button.setIcon(icon3)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icon/Icon/minimizeIcon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Minimize_Button.setIcon(icon4)
self.Minimize_Button.setIconSize(QtCore.QSize(20, 20))
self.Minimize_Button.setCheckable(False)
self.Minimize_Button.setObjectName("Minimize_Button")
@@ -2131,9 +2150,9 @@ class Ui_MainWindow(object):
" background-color:rgba(255, 255, 255,220);\n"
"}")
self.Menu_Button.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icon/Icon/Menu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Menu_Button.setIcon(icon4)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icon/Icon/Menu.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Menu_Button.setIcon(icon5)
self.Menu_Button.setIconSize(QtCore.QSize(19, 19))
self.Menu_Button.setCheckable(False)
self.Menu_Button.setObjectName("Menu_Button")
@@ -2147,7 +2166,7 @@ class Ui_MainWindow(object):
self.Process_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Process_widget.setObjectName("Process_widget")
self.Process_Tools_Back = QtWidgets.QPushButton(self.Process_widget)
self.Process_Tools_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Process_Tools_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -2170,12 +2189,12 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Process_Tools_Back.setIcon(icon)
self.Process_Tools_Back.setIcon(icon1)
self.Process_Tools_Back.setIconSize(QtCore.QSize(20, 20))
self.Process_Tools_Back.setCheckable(False)
self.Process_Tools_Back.setObjectName("Process_Tools_Back")
self.Process_list = QtWidgets.QListView(self.Process_widget)
self.Process_list.setGeometry(QtCore.QRect(20, 60, 631, 381))
self.Process_list.setGeometry(QtCore.QRect(20, 60, 631, 371))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
self.Process_list.setFont(font)
@@ -2209,7 +2228,7 @@ class Ui_MainWindow(object):
self.Process_list.setVerticalScrollMode(QtWidgets.QAbstractItemView.ScrollPerItem)
self.Process_list.setObjectName("Process_list")
self.Process_Total_title = QtWidgets.QLabel(self.Process_widget)
self.Process_Total_title.setGeometry(QtCore.QRect(20, 445, 111, 31))
self.Process_Total_title.setGeometry(QtCore.QRect(20, 435, 141, 41))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(12)
@@ -2220,7 +2239,7 @@ class Ui_MainWindow(object):
self.Process_Total_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Process_Total_title.setObjectName("Process_Total_title")
self.Process_Total_View = QtWidgets.QLineEdit(self.Process_widget)
self.Process_Total_View.setGeometry(QtCore.QRect(130, 450, 121, 21))
self.Process_Total_View.setGeometry(QtCore.QRect(170, 440, 481, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -2455,7 +2474,7 @@ class Ui_MainWindow(object):
self.System_Info_Button.setObjectName("System_Info_Button")
self.System_verticalLayout.addWidget(self.System_Info_Button)
self.System_Tools_Back = QtWidgets.QPushButton(self.System_Tools_widget)
self.System_Tools_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.System_Tools_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -2478,7 +2497,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.System_Tools_Back.setIcon(icon)
self.System_Tools_Back.setIcon(icon1)
self.System_Tools_Back.setIconSize(QtCore.QSize(20, 20))
self.System_Tools_Back.setCheckable(False)
self.System_Tools_Back.setObjectName("System_Tools_Back")
@@ -2492,7 +2511,7 @@ class Ui_MainWindow(object):
self.Analyze_EXE_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Analyze_EXE_widget.setObjectName("Analyze_EXE_widget")
self.Analyze_EXE_Back = QtWidgets.QPushButton(self.Analyze_EXE_widget)
self.Analyze_EXE_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Analyze_EXE_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -2515,7 +2534,7 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Analyze_EXE_Back.setIcon(icon)
self.Analyze_EXE_Back.setIcon(icon1)
self.Analyze_EXE_Back.setIconSize(QtCore.QSize(20, 20))
self.Analyze_EXE_Back.setCheckable(False)
self.Analyze_EXE_Back.setObjectName("Analyze_EXE_Back")
@@ -2538,7 +2557,7 @@ class Ui_MainWindow(object):
self.Customize_CMD_Command_widget.setStyleSheet("background-color:rgba(255, 255, 255,240);")
self.Customize_CMD_Command_widget.setObjectName("Customize_CMD_Command_widget")
self.Customize_CMD_Command_Back = QtWidgets.QPushButton(self.Customize_CMD_Command_widget)
self.Customize_CMD_Command_Back.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.Customize_CMD_Command_Back.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -2561,12 +2580,12 @@ class Ui_MainWindow(object):
" color:rgba(60,60,60,255);\n"
"}\n"
"")
self.Customize_CMD_Command_Back.setIcon(icon)
self.Customize_CMD_Command_Back.setIcon(icon1)
self.Customize_CMD_Command_Back.setIconSize(QtCore.QSize(20, 20))
self.Customize_CMD_Command_Back.setCheckable(False)
self.Customize_CMD_Command_Back.setObjectName("Customize_CMD_Command_Back")
self.Customize_CMD_Command_lineEdit = QtWidgets.QLineEdit(self.Customize_CMD_Command_widget)
self.Customize_CMD_Command_lineEdit.setGeometry(QtCore.QRect(20, 80, 521, 31))
self.Customize_CMD_Command_lineEdit.setGeometry(QtCore.QRect(20, 70, 521, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -2575,7 +2594,7 @@ class Ui_MainWindow(object):
self.Customize_CMD_Command_lineEdit.setStyleSheet("")
self.Customize_CMD_Command_lineEdit.setObjectName("Customize_CMD_Command_lineEdit")
self.Customize_CMD_Command_Run_Button = QtWidgets.QPushButton(self.Customize_CMD_Command_widget)
self.Customize_CMD_Command_Run_Button.setGeometry(QtCore.QRect(550, 80, 101, 31))
self.Customize_CMD_Command_Run_Button.setGeometry(QtCore.QRect(550, 70, 101, 31))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -2614,7 +2633,7 @@ class Ui_MainWindow(object):
self.Customize_CMD_Command_output.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.Customize_CMD_Command_output.setObjectName("Customize_CMD_Command_output")
self.Customize_CMD_Command_output_title = QtWidgets.QLabel(self.Customize_CMD_Command_widget)
self.Customize_CMD_Command_output_title.setGeometry(QtCore.QRect(20, 120, 281, 16))
self.Customize_CMD_Command_output_title.setGeometry(QtCore.QRect(20, 105, 631, 31))
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(11)
@@ -2761,7 +2780,7 @@ class Ui_MainWindow(object):
self.More_Tools_Button.setObjectName("More_Tools_Button")
self.Tools_verticalLayout.addWidget(self.More_Tools_Button)
self.More_Tools_Back_Button = QtWidgets.QPushButton(self.Tools_widget)
self.More_Tools_Back_Button.setGeometry(QtCore.QRect(10, 10, 81, 41))
self.More_Tools_Back_Button.setGeometry(QtCore.QRect(10, 10, 111, 41))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
+1 -1
View File
@@ -11,7 +11,7 @@ https://github.com/87owo/PYAS
https://github.com/87owo/ViruslistMD5/releases
## Support System
Windows 8.1, 10, 11 (64-bit), Ram 1GB, Rom 500MB or higher
Windows 8.1, 10, 11 (64-bit), Ram 1GB, Rom 1GB or higher
## Import Module
os, time, sys, psutil, socket, subprocess, platform, cryptocode, threading, pygame, datetime, configparser, webbrowser, PYAS_English, pefile, hashlib, PyQt5, PYAS_UI, win32api,win32con
+1 -1
View File
@@ -1,7 +1,7 @@
import pyinstaller_versionfile
pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version='2.4.4',
version='2.4.5',
company_name="PYAS Security",
file_description="Python Antivirus Software",
internal_name="PYAS",