from Tkinter import *
btn = Button(text='button',padx=10,pady=10)
btn.config(bd=10,relief = RAISED)
btn.config(cursor='gumby')
btn.config(bg='green',fg='yellow')
btn.config(font=("Times", 20, "bold"))
btn.pack()
btn.mainloop()
Tkinter -- 通过config来配置控件属性
最新推荐文章于 2024-07-27 12:52:41 发布