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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 程序新增pyqt5pygamepyinstaller安装
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()

233
system.py Normal file
View File

@ -0,0 +1,233 @@
from tkinter import *
from tkinter import messagebox
import time
import os
import webbrowser
root = Tk()
ok = '安装完成'
ok2 = '删除完成'
pip_pyinstaller = Button(root, text="pyinstaller安装")
def pyinstaller(e):
os.system("pip install pyinstaller")
messagebox.showinfo("pip", ok)
pass
pip_pyinstaller.bind('<Button-1>', pyinstaller)
root_update = Button(root, text="pip检测升级")
def update(e):
messagebox.showerror("pip update", "无法使用程序出现BUG")
pass
'''sc = Tk()
text1 = Text(sc)
sc.title("pip_update")
sc.geometry('300x200+300+200')
pip_update_1 = text1 + "-m pip install --upgrade pip"
ok_update = Button(sc, text="确定")
def ok(e):
os.system(pip_update_1)
messagebox.showwarning("pip更新完成")
pass
quit_update = Button(sc, text="返回")
def exit_update(e):
sc.destroy()
pass
text1.pack()
ok_update.bind('<Button-1>', ok)
quit_update.bind('Button-1>', exit_update)
text1.pack()
ok_update.pack()
quit_update.pack()
sc.mainloop()
pass'''
root_update.bind('<Button-1>', update)
pip_pygame = Button(root, text="pygame库安装")
def pygame(e):
os.system("pip install pygame")
messagebox.showwarning("pygame install", ok)
pass
pip_pygame.bind('<Button-1>', pygame)
pip_pyqt = Button(root, text="pyqt5安装")
def pyqt5(e):
os.system("pip install pyqt5")
messagebox.showwarning("pip pyqt5", ok)
pass
pip_pyqt.bind('<Button-1>', pyqt5)
pip_quit = Button(root, text="exit")
def pip_exit(e):
root.destroy()
messagebox.showwarning("pip安装助手", "程序已退出")
pass
pip_quit.bind('<Button-1>', pip_exit)
pip_update = Button(root, text='更新内容')
def update_root(e):
update_window_1 = Tk()
la_1 = Label(update_window_1, text='更新内容')
la_2 = Label(update_window_1, text='''1.0 程序制作完成
1.2 程序新增pyqt5pygamepyinstaller安装
1.3 程序加入更新界面里面只显示更新的内容不会自动更新
1.4 新增Requests库安装和删除
1.5 新增wxpython库安装和删除
1.6 加入关于模块
1.7 新增一个小彩蛋
stop 本程序将在2023年3月20日正式终止更新''')
la_3 = Label(update_window_1, text="当前版本1.5")
la_1.pack()
la_2.pack()
la_3.pack()
update_window_1.title('更新内容')
update_window_1.geometry('400x200+500+400')
update_window_1.mainloop()
pass
pip_update.bind('<Button-1>', update_root)
# 删除模块代码
remove_open = Button(root ,text='删除库模式')
def remove(e):
# 初始化程序和定义按钮
remove_1 = Tk()
remove_pygame = Button(remove_1, text='删除pygame')
remove_pyinstaller = Button(remove_1, text='删除pyinstaller')
remove_pyqt = Button(remove_1, text='删除pyqt5')
remove_Requests = Button(remove_1, text='删除Requests')
remove_tqdm = Button(remove_1, text='删除tqdm')
remove_exit = Button(remove_1, text='返回')
# def处理运行代码
def pyinstaller_remove(e):
os.system('pip uninstall pyinstaller')
messagebox.showinfo('remove', ok2)
pass
def pygame_remove(e):
os.system('pip uninstall pygame')
messagebox.showinfo('remove', ok2)
pass
def pyqt_remove(e):
os.system('pip uninstall pyqt5')
messagebox.showinfo('remove', ok2)
pass
def Requests_remove(e):
os.system('pip uninstall Requests')
messagebox.showinfo('remove', ok2)
pass
def quit_remove(e):
remove_1.destroy()
pass
def tqdm_remove(e):
os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok2)
pass
# 定义按钮的def
remove_pygame.bind('<Button-1>',pygame_remove)
remove_pyinstaller.bind('<Button-1>', pyinstaller_remove)
remove_pyqt.bind('<Button-1>', pyqt_remove)
remove_Requests.bind('<Button-1>',Requests_remove)
remove_tqdm.bind('<Button-1>', tqdm_remove)
remove_exit.bind('<Button-1>', quit_remove)
# 放置remove模块的按钮
remove_pygame.pack()
remove_pyqt.pack()
remove_pyinstaller.pack()
remove_Requests.pack()
remove_tqdm.pack()
remove_exit.pack()
# 加载删除库的Gui
remove_1.title('remove')
remove_1.geometry('200x200+450+400')
remove_1.mainloop()
pass
remove_open.bind('<Button-1>', remove)
# 安装Requests模块
pip_Requests = Button(root, text='Requests安装')
def Requests(e):
os.system('pip install Requests')
messagebox.showinfo('pip Requests', ok)
pass
pip_Requests.bind('<Button-1>', Requests)
# 安装wxPython模块
pip_wxPython = Button(root, text='wxPython安装')
def wxPython(e):
os.system('pip installl wxPython')
messagebox.showinfo('pip wxPython', ok)
pass
pip_wxPython.bind('<Button-1>', wxPython)
# 关于模块
pip_gk = Button(root, text='关于')
def gk(e):
gk_window = Tk()
gk_1 = Label(gk_window, text='pip helper')
gk_2 = Label(gk_window, text='''此程序是由dengrb1开发和编写
开源地址和教程:https://github.com/dengrb1/pygk
作者GitHubhttps://github.com/dengrb1
本程序已停止了更新请前往github仓库下载最新的pip安装助手重置版
@ 2023-2024 由pygk团队的dengrb1拥有所有权''')
def open(_=None):
webbrowser.open('https://github.com/dengrb1/pygk')
pass
def quit_gk(e):
gk_window.destroy()
pass
gk_1.pack()
gk_2.pack()
open_url = Button(gk_window, text='打开GitHub仓库', command=open).pack()
quit_bt = Button(gk_window, text='返回', command=quit_gk).pack()
gk_window.title('关于')
gk_window.geometry('310x300')
gk_window.mainloop()
pass
pip_gk.bind('<Button-1>', gk)
# 彩蛋程序
pip_cd = Button(root , text='彩蛋解锁')
def cd(e):
messagebox.showinfo('彩蛋', '彩蛋已删除,你来晚了')
pass
pip_cd.bind('<Button-1>', cd)
pip_tqdm = Button(root, text='tqdm安装')
def tqdm(e):
os.system('pip install tqdm')
messagebox.showinfo('pip install', ok)
pass
pip_tqdm.bind('<Button-1>', tqdm)
# 按钮放置
root_update.pack()
pip_pygame.pack()
pip_pyqt.pack()
pip_pyinstaller.pack()
pip_Requests.pack()
pip_wxPython.pack()
pip_tqdm.pack()
remove_open.pack()
pip_cd.pack()
pip_update.pack()
pip_quit.pack()
# 加载程序GUI
root.title('pip安装助手')
root.geometry('200x350+300+600')
root.mainloop()

172
system2.py Normal file
View File

@ -0,0 +1,172 @@
# 初始化程序
import os
import webbrowser
import time
# 定义变量
pyinstaller_setup = 'pip install pyinstaller'
pygame_setup = 'pip install pygame'
pyqt_setup = 'pip install pyqt5'
root_text = '1.安装模式2.删除模式3更新日志4.关于5.退出'
# root_text = '1.pyinstaller安装2.pygame安装3.pyqt5安装4.更新日志5.删除模式6.退出,7.Requests安装'
setup_ok = '安装完成'
clean = 'cls'
root_2 = '1.删除pyinstaller2.删除pygame3删除pyqt54.Requests删除,5.tqdm删除'
remove_pyinstaller = 'pip uninstall pyinstaller'
remove_pygame = 'pip uninstall pygame'
remove_pyqt5 = 'pip uninstall pyqt5'
remove = '删除完成'
remove_Requests = 'pip uninstall Requests'
Requests_setup = 'pip install Requests'
install_text = '1.pyinstaller安装2.pygame安装3.pyqt5安装4.Requests安装,5.返回6.tqdm安装,7.wxpython安装,8.nuitka安装,9.返回'
# 选择模块测试
while 1:
print(root_text)
xz = int(input('请选择'))
if xz == 1:
while 1:
print(install_text)
xz_install = int('请选择:')
if xz_install == 1:
os.system(pyinstaller_setup)
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 2:
os.system(pygame_setup)
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 3:
os.system(pyqt_setup)
os.system('pip install PyQtWebEngine')
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 4:
os.system(Requests_setup)
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 5:
break
elif xz_install == 6:
os.system('pip install tqdm')
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 7:
os.system('pip install wxpython')
print(setup_ok)
time.sleep(1)
pass
elif xz_install == 8:
os.system('pip install nuitka')
print(setup_ok)
time.sleep(0.5)
pass
elif xz_install == 9:
break
pass
pass
elif xz == 2:
while 1:
remove_text = '1.pyinstaller删除2.pygame删除3.pyqt5删除4.Requests删除5.wxpython删除6.tqdm删除,nuitka安装8.返回'
print(remove_text)
xz_remove = int(input('请选择:'))
if xz_remove == 1:
os.system(remove_pyinstaller)
print(remove)
time.sleep(1)
pass
elif xz_remove == 2:
os.system(remove_pygame)
print(remove)
time.sleep(1)
pass
elif xz_remove == 3:
os.system(remove_pyqt5)
os.system('pip uninstall PyQtWebEngine')
print(remove)
time.sleep(1)
pass
elif xz_remove == 4:
os.system(remove_Requests)
print(remove)
time.sleep(1)
pass
elif xz_remove == 45:
os.system('pip uninstall wxpython')
print(remove)
time.sleep(1)
pass
elif xz_remove == 6:
os.system('pip uninstall tqdm')
print(remove)
time.sleep(1)
pass
elif xz_remove == 7:
os.system('pip uninstall nuitka')
print(remove)
time.sleep(0.5)
pass
elif xz_remove == 8:
break
else:
print('error:不支持这个参数')
time.sleep(0.86)
pass
pass
pass
elif xz == 402:
print('哦,你来晚了,彩蛋已经删除了')
time.sleep(1)
pass
elif xz == 3:
while True:
print('更新日志')
print('''1.0 程序制作完成
1.2 程序新增pyqt5pygamepyinstaller安装
1.3 程序加入更新界面里面只显示更新的内容不会自动更新
1.4 新增Requests库安装和删除
1.5 新增wxpython库安装和删除
1.6 加入关于模块
1.7 新增一个小彩蛋
1.8 新增nuitka安装和删除''')
print('当前版本:1.8')
if int(input('继续看?' + '1是2不是')) == 1:
continue
else:
break
pass
elif xz == 4:
while True:
print('关于')
print('''此程序是由dengrb1开发和编写
开源地址和教程:https://github.com/dengrb1/pygk
作者GitHubhttps://github.com/dengrb1
@ 2023-2024 由pygk团队的dengrb1拥有所有权''')
if int(input('是否打开GitHub仓库地址' + '1是2不是')) == 1:
webbrowser.open('https://github.com/dengrb1/pygk')
pass
else:
pass
if int(input('继续看?' + '1是2不是')) == 1:
continue
else:
break
pass
elif xz == 5:
break
pass
# 程序退出模块(已被废弃)
print('程序退出')
time.sleep(0.62)
exit()

222
system_cz.py Normal file
View File

@ -0,0 +1,222 @@
from tkinter import *
from tkinter import messagebox
import os
import webbrowser
root = Tk()
ok = '安装完成'
ok2 = '删除完成'
uninstall = 'pip uninstall'
install_1 = 'pip install'
# 安装模式
pip_install = Button(root, text='安装模式')
def install(e):
install = Tk()
pip_pyinstaller = Button(install, text='pyinstall安装')
pip_pygame = Button(install, text='pygame安装')
pip_pyqt = Button(install, text='pyqt5安装')
pip_Requests = Button(install, text='Requests安装')
pip_wxpython = Button(install, text='wxpython安装')
def pyinstaller(e):
os.system('pip install pyinstaller')
messagebox.showinfo('pip install', ok)
pass
def pygame(e):
os.system('pip install pygame')
messagebox.showinfo('pip install', ok)
pass
def pyqt(e):
os.system('pip install pyqt5')
os.system('pip install PyQtWebEngine')
messagebox.showinfo('pip install', ok)
pass
def Requests(e):
os.system('pip install Requests')
messagebox.showinfo('pip install', ok)
pass
def wxpython(e):
os.system('pip install wxpython')
messagebox.showinfo('pip install', ok)
pass
def nuitka(e):
os.system('pip install nuitka')
messagebox.showinfo('pip install', ok)
pass
def pywin32(e):
os.system('pip install pywin32')
messagebox.showinfo(install_1, ok)
pass
pip_pyqt.bind('<Button-1>', pyqt)
pip_pygame.bind('<Button-1>', pygame)
pip_pyinstaller.bind('<Button-1>', pyinstaller)
pip_Requests.bind('<Button-1>', Requests)
pip_wxpython.bind('<Button-1>', wxpython)
pip_nuitka = Button(install, text='nuitka安装', command=nuitka)
pip_pywin32 = Button(install, text='pywin32安装', command=pywin32)
# 载入按钮
pip_pyqt.pack()
pip_pygame.pack()
pip_wxpython.pack()
pip_Requests.pack()
pip_pyinstaller.pack()
pip_nuitka.pack()
pip_pywin32.pack()
# 初始化程序
install.title('安装模式')
install.geometry('200x200')
install.mainloop()
pass
pip_install.bind('<Button-1>', install)
# 删除模式
pip_remove = Button(root, text='删除模式')
def remove_ms(e):
remove = Tk()
remove_pyqt = Button(remove, text='pyqt删除')
remove_pygame = Button(remove, text='pygame删除')
remove_wxpython = Button(remove, text='wxpython删除')
remove_Requests = Button(remove, text='Requests删除')
remove_pyinstaller = Button(remove, text='pyinstaller安装')
def pyinstaller_remove(e):
os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok2)
pass
def pygame_remove(e):
os.system('pip uninstall pygame')
messagebox.showinfo('pip uninstall', ok2)
pass
def wxpython_remove(e):
os.system('pip uninstall wxpython')
messagebox.showinfo('pip uninstall', ok2)
pass
def Requests_remove(e):
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def pyqt_remove(e):
os.system('pip uninstall pyqt5')
os.systen('pip uninstall PyQtWebEngine')
messagebox.showinfo('pip uninstall', ok2)
pass
def tqdm_remove(e):
os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok2)
pass
def nuitka_remove(e):
os.system('pip uninstall nuitka')
messagebox.showinfo(uninstall, ok2)
pass
def pywin32_remove(e):
os.system('pip uninstall pywin32')
messagebox.showinfo(uninstall, ok2)
pass
# 定义按钮的def
remove_pyqt.bind('<Button-1>', pyqt_remove)
remove_pygame.bind('<Button-1>', pygame_remove)
remove_pyinstaller.bind('<Button-1>', pyinstaller_remove)
remove_Requests.bind('<Button-1>', Requests_remove)
remove_wxpython.bind('<Button-1>', wxpython_remove)
remove_tqdm = Button(remove, text='tqdm删除', command=tqdm_remove)
remove_nuitka = Button(remove, text='nuitka删除', command=nuitka_remove)
remove_pywin32 = Button(remove, text='pywin32删除', command=pywin32_remove)
# 加载按钮位置
remove_pyqt.pack()
remove_pygame.pack()
remove_wxpython.pack()
remove_Requests.pack()
remove_pyinstaller.pack()
remove_tqdm.pack()
remove_nuitka.pack()
remove_pywin32.pack()
# 初始化程序
remove.title('删除模式')
remove.geometry('200x200')
remove.mainloop()
pass
pip_remove.bind('<Button-1>', remove_ms)
# 更新内容
root_update = Button(root, text='更新日志')
def update(e):
update_window_1 = Tk()
la_1 = Label(update_window_1, text='更新内容')
la_2 = Label(update_window_1, text='''1.0 程序制作完成
1.2 程序新增pyqt5pygamepyinstaller安装
1.3 程序加入更新界面里面只显示更新的内容不会自动更新
1.4 新增Requests库安装和删除
1.5 新增wxpython库安装和删除
1.6 加入关于模块
1.7 新增一个小彩蛋
1.8 新增nuitka安装和删除''')
la_3 = Label(update_window_1, text="当前版本1.8")
la_1.pack()
la_2.pack()
la_3.pack()
update_window_1.title('更新内容')
update_window_1.geometry('400x200')
update_window_1.mainloop()
pass
root_update.bind('<Button-1>', update)
# 关于模块
pip_gk = Button(root, text='关于')
def gk(e):
gk_window = Tk()
gk_1 = Label(gk_window, text='pip helper重制版')
gk_2 = Label(gk_window, text='''此程序是由dengrb1开发和编写
开源地址和教程:https://github.com/dengrb1/pygk
作者GitHubhttps://github.com/dengrb1
@ 2023-2024 由pygk团队的dengrb1拥有所有权''')
def quit_gk(_=None):
gk_window.destroy()
pass
def open_url(_=None):
webbrowser.open('https://github.com/dengrb1/pygk')
pass
gk_1.pack()
gk_2.pack()
open_web = Button(gk_window, text='打开GitHub仓库地址', command=open_url).pack()
quit_gk_bt = Button(gk_window, text='返回', command=quit_gk).pack()
gk_window.title('关于')
gk_window.geometry('310x300')
gk_window.mainloop()
pass
pip_gk.bind('<Button-1>', gk)
# 彩蛋程序
pip_cd = Button(root , text='彩蛋解锁')
def cd(e):
messagebox.showinfo('彩蛋', '哦,你来晚了,彩蛋已经被删除了')
pass
pip_cd.bind('<Button-1>', cd)
# 退出模块
def exit_pip(_=None):
messagebox.showwarning('pip helper', '程序正在退出')
root.destroy()
pass
pip_exit = Button(root, text='退出', command=exit_pip)
# 加载按钮位置root
pip_install.pack()
pip_remove.pack()
pip_cd.pack()
root_update.pack()
pip_gk.pack()
pip_exit.pack()
# 初始化主程序
root.title('pip helper')
root.geometry('200x200+500+400')
root.mainloop()