chatGPT
This commit is contained in:
20
client.pyw
20
client.pyw
@@ -33,6 +33,14 @@ def update():
|
|||||||
else:
|
else:
|
||||||
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
|
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
|
||||||
|
|
||||||
|
def user_xy():
|
||||||
|
if os.path.exists(os.path.join(CURRENT_DIR, "使用协议.docx")):
|
||||||
|
os.system("start 使用协议.docx")
|
||||||
|
else:
|
||||||
|
messagebox.showerror('使用协议','文档丢失,请检查文件内容并重新安装')
|
||||||
|
pass
|
||||||
|
pass
|
||||||
|
|
||||||
def quit_exe():
|
def quit_exe():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
|
||||||
@@ -45,14 +53,16 @@ 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='f1网站', command=f1)
|
bt_f1 = tk.Button(root, text='f1网站', command=f1)
|
||||||
|
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)
|
||||||
|
|
||||||
bt_w.pack(side=tk.TOP, pady=5)
|
bt_w.pack()
|
||||||
bt_e.pack(side=tk.TOP, pady=5)
|
bt_e.pack()
|
||||||
bt_f1.pack(side=tk.TOP, pady=5)
|
bt_f1.pack()
|
||||||
bt_update.pack(side=tk.TOP, pady=5)
|
bt_xy.pack()
|
||||||
quit_bt.pack(side=tk.BOTTOM)
|
bt_update.pack()
|
||||||
|
quit_bt.pack()
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|||||||
Reference in New Issue
Block a user