Python version: 3.7.0
效果:
代码:
import tkinter as tk def openPath(): print("aaa") frm = tk.Tk() frm.title('Auto Rename File Tool V1.0') frm.geometry("380x80") label1 = tk.Label(frm,text='Find Key:') label1.place(x=10,y=10) entry1 = tk.Entry(frm,width=12) entry1.place(x=80,y=10) label2 = tk.Label(frm,text='Find Path:') label2.place(x=10,y=40) entry2 = tk.Entry(frm,width=18) entry2.place(x=80,y=40) btn1 = tk.Button(frm,text=' Open ',command=openPath,) btn1.place(x=250,y=35) btn0 = tk.Button(frm,text=' Exit ',command=frm.quit,) btn0.place(x=320,y=35) frm.mainloop()
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。