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()