Python 官方文档:入门教程 => 点击学习
python version: 3.7.0效果:代码:import tkinter as tk def openPath(): print("aaa") frm = tk.Tk() frm.title('Auto Rename
效果:
代码:
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()
--结束END--
本文标题: Python GUI(Tkinter)初
本文链接: https://lsjlt.com/news/184580.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0