This commit is contained in:
dengrb1
2023-04-29 22:05:59 +08:00
committed by GitHub
parent 2ea30091f7
commit 05d66211a3
2 changed files with 5 additions and 5 deletions

View File

@@ -30,13 +30,13 @@ def update():
else: else:
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装') messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
def user_xy(): '''def user_xy():
if os.path.exists(os.path.join(CURRENT_DIR, "使用协议.docx")): if os.path.exists(os.path.join(CURRENT_DIR, "使用协议.docx")):
os.system("start 使用协议.docx") os.system("start 使用协议.docx")
else: else:
messagebox.showerror('使用协议','文档丢失,请检查文件内容并重新安装') messagebox.showerror('使用协议','文档丢失,请检查文件内容并重新安装')
pass pass
pass pass'''
def quit_exe(): def quit_exe():
os.system('taskkill -f -t -im aiyunos.exe') os.system('taskkill -f -t -im aiyunos.exe')
@@ -55,7 +55,7 @@ tk.Label(root, text='chatGPT').pack()
bt_w = tk.Button(root, text='wuguokai网站', command=wuguokai) bt_w = tk.Button(root, text='wuguokai网站', command=wuguokai)
bt_e = tk.Button(root, text='extkj网站', command=extkj) bt_e = tk.Button(root, text='extkj网站', command=extkj)
bt_f1 = tk.Button(root, text='aitianhu网站', command=f1) bt_f1 = tk.Button(root, text='aitianhu网站', command=f1)
bt_xy = tk.Button(root, text='使用协议(使用前必看)', command=user_xy) # bt_xy = tk.Button(root, text='使用协议(使用前必看)', command=user_xy)
bt_update = tk.Button(root, text='更新日志', command=update) bt_update = tk.Button(root, text='更新日志', command=update)
quit_bt = tk.Button(root, text='退出', command=quit_exe) quit_bt = tk.Button(root, text='退出', command=quit_exe)

View File

@@ -15,9 +15,9 @@ Label(root, text='''0.1.0 DEMO制作完成
0.1.1 demo版本增加lbbAI网站 0.1.1 demo版本增加lbbAI网站
0.1.2 demo版本删除lbbAI网站因为无法使用 0.1.2 demo版本删除lbbAI网站因为无法使用
0.1.3 修复BUG 0.1.3 修复BUG
1.0 正式版,加入关于模块更新网站aitianhu.top修复“退出”按钮的问题优化了代码''').pack() 1.0 加入关于模块更新网站aitianhu.top修复“退出”按钮的问题''').pack()
Label(root, text='当前版本:1.0 official version').pack() Label(root, text='当前版本:1.0 (Not beta or demo)').pack()
# Button # Button
quit_bt = Button(root, text='返回', command=quit_exe).pack() quit_bt = Button(root, text='返回', command=quit_exe).pack()