Add files via upload

This commit is contained in:
dengrb1
2023-04-07 23:17:25 +08:00
committed by GitHub
parent 47766e55c6
commit 93f2be70f9
7 changed files with 825 additions and 0 deletions

70
new_system/delete.py Normal file
View File

@@ -0,0 +1,70 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
root_1 = 'pip uninstall'
ok = '安装完成'
ok2 = '删除完成'
uninstall = 'pip uninstall'
def pyinstaller_remove():
os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok2)
pass
def pygame_remove():
os.system('pip uninstall pygame')
messagebox.showinfo('pip uninstall', ok2)
pass
def wxpython_remove():
os.system('pip uninstall wxpython')
messagebox.showinfo('pip uninstall', ok2)
pass
def Requests_remove():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def pyqt_remove():
os.system('pip uninstall pyqt5')
os.systen('pip uninstall PyQtWebEngine')
messagebox.showinfo('pip uninstall', ok2)
pass
def tqdm_remove():
os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok2)
pass
def nuitka_remove():
os.system('pip uninstall nuitka')
messagebox.showinfo(uninstall, ok2)
pass
def pywin32_remove():
os.system('pip uninstall pywin32')
messagebox.showinfo(uninstall, ok2)
pass
def django_remove():
os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2)
pass
def numpy_remove():
os.system('pip uninstall numpy')
messagebox.showinfo(uninstall, ok2)
pass
# 按钮
remove_pyqt = Button(root, text='pyqt删除', command=pyqt_remove).pack()
remove_pygame = Button(root, text='pygame删除',command=pygame_remove).pack()
remove_wxpython = Button(root, text='wxpython删除', command=wxpython_remove).pack()
remove_Requests = Button(root, text='Requests删除', command=Requests_remove).pack()
remove_pyinstaller = Button(root, text='pyinstaller安装', command=pyinstaller_remove).pack()
remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack()
remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack()
remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack()
remove_django = Button(root, text='django删除', command=django_remove)
remove_numpy = Button(root ,text="numpy删除", command=numpy_remove)
# 初始化程序
root.title('删除模式')
root.geometry('200x250+0+0')
root.mainloop()

30
new_system/gk.py Normal file
View File

@@ -0,0 +1,30 @@
from tkinter import *
from tkinter import messagebox
import webbrowser
gk_window = Tk()
url = 'https://github.com/dengrb1/pygk'
la_1 = Label(gk_window, text='关于').pack()
la_2 = Label(gk_window, text='''此程序是由dengrb1开发和编写
开源地址和教程:https://github.com/dengrb1/pygk
作者GitHubhttps://github.com/dengrb1
@ 2023-2024 由pygk团队的dengrb1拥有所有权''').pack()
# 其他按钮
def open_url(_=None):
webbrowser.open(url)
pass
def quit_gk():
gk_window.destroy()
pass
# 按钮定义
open_bt = Button(gk_window, text='打开作者github仓库', command=open_url).pack()
quit_bt = Button(gk_window, text='返回', command=quit_gk).pack()
# 初始化程序
gk_window.title('关于')
gk_window.geometry('250x200+20+0')
gk_window.mainloop()

68
new_system/install.py Normal file
View File

@@ -0,0 +1,68 @@
from tkinter import *
from tkinter import messagebox
import os
root = Tk()
ok = '安装完成'
install_1 = 'pip install'
def pyinstaller():
os.system('pip install pyinstaller')
messagebox.showinfo('pip install', ok)
pass
def pygame():
os.system('pip install pygame')
messagebox.showinfo('pip install', ok)
pass
def pyqt():
os.system('pip install pyqt5')
os.system('pip install PyQtWebEngine')
messagebox.showinfo('pip install', ok)
pass
def Requests():
os.system('pip install Requests')
messagebox.showinfo('pip install', ok)
pass
def wxpython():
os.system('pip install wxpython')
messagebox.showinfo('pip install', ok)
pass
def nuitka():
os.system('pip install nuitka')
messagebox.showinfo('pip install', ok)
pass
def pywin32():
os.system('pip install pywin32')
messagebox.showinfo(install_1, ok)
pass
def tqdm():
os.system('pip install tqdm')
messagebox.showinfo(install_1, ok)
pass
def django():
os.system('pip install django')
messagebox.showinfo(install_1, ok)
pass
def numpy():
os.system('pip install numpy')
messagebox.showinfo(install_1, ok)
pass
# 按钮
pip_pyinstaller = Button(root, text='pyinstall安装', command=pyinstaller).pack()
pip_pygame = Button(root, text='pygame安装', command=pygame).pack()
pip_pyqt = Button(root, text='pyqt5安装', command=pyqt).pack()
pip_Requests = Button(root, text='Requests安装', command=Requests).pack()
pip_wxpython = Button(root, text='wxpython安装', command=wxpython).pack()
pip_tqdm = Button(root, text='tqdm安装', command=tqdm).pack()
pip_nuitka = Button(root, text='nuitka安装', command=nuitka).pack()
pip_pywin32 = Button(root, text='pywin32安装', command=pywin32).pack()
pip_django = Button(root, text="django安装", command=django)
pip_numpy = Button(root, text='numpy安装', command=numpy)
# 初始化程序
root.title('安装模式')
root.geometry('200x250+10+0')
root.mainloop()

30
new_system/update.py Normal file
View File

@@ -0,0 +1,30 @@
from tkinter import *
from tkinter import messagebox
update = Tk()
url_update = 'https://github.com/dengrb1/pygk'
la_1 = Label(update, text='更新日志').pack()
la_2 = Label(update, text='''1.0 程序制作完成
1.2 程序新增pyqt5、pygame、pyinstaller安装
1.3 程序加入更新界面,里面只显示更新的内容,不会自动更新!
1.4 新增Requests库安装和删除
1.5 新增wxpython库安装和删除
1.6 加入关于模块
1.7 新增一个小彩蛋
1.8 新增nuitka安装和删除
1.9 新增django库安装和删除''').pack()
# 定义按钮
def quit_update():
update.destroy()
pass
# 按钮设置
quit_window_bt = Button(update, text='返回', command=quit_update)
# 初始化程序
update.title('更新日志')
update.geometry('250x250+50+50')
update.mainloop()