From 272579e83e7834a1919c73e35461bf7aa151f7a6 Mon Sep 17 00:00:00 2001 From: dengrb1 <125752069+dengrb1@users.noreply.github.com> Date: Mon, 1 May 2023 08:35:30 +0800 Subject: [PATCH] chatWEB --- sittings.pyw | 38 ++++++++++++++++++++++++++++++++++++++ update.pyw | 5 +++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 sittings.pyw diff --git a/sittings.pyw b/sittings.pyw new file mode 100644 index 0000000..e1c92a0 --- /dev/null +++ b/sittings.pyw @@ -0,0 +1,38 @@ +import os +import webbrowser +from tkinter import * +from tkinter import messagebox + + +root = Tk() +ml = os.getcwd() + + +def jc(exe_name): + if os.path.exists(os.path.join(ml,f"{exe_name}.exe")): + os.system(f"start {exe_name}.exe") + else: + messagebox.showerror("sittings", '系统文件丢失!请重新安装') + pass + pass + +def gk(): + jc("gk") + +def update(): + jc("update") + +def fh(): + root.destroy() + + +# Button, Label and pack +Label(root, text='其他内容').pack() +bt_update = Button(root, text='更新日志', command=update).pack() +bt_gk = Button(root, text='关于', command=gk).pack() + + +# mainloop +root.title("其他") +root.geometry("200x200+400+400") +root.mainloop() \ No newline at end of file diff --git a/update.pyw b/update.pyw index c58c6ac..07625c6 100644 --- a/update.pyw +++ b/update.pyw @@ -16,8 +16,9 @@ Label(root, text='''0.1.0 DEMO制作完成 0.1.2 demo版本删除lbbAI网站,因为无法使用 0.1.3 修复BUG 1.0 加入关于模块,更新网站aitianhu.top;修复“退出”按钮的问题 -1.0.1 修复BUG:移除“检查文件完整度”程序使用 -(可以在github仓库的old文件夹里面看;修复其他BUG......''').pack() +1.1 修复BUG:移除“检查文件完整度”程序使用 +(可以在github仓库的old文件夹里面看;修复其他BUG...... +1.2 修复BUG ''').pack() Label(root, text='当前版本:1.0.1 (Not beta or demo)').pack()