relief(浮雕)参数如下: FLAT(平坦的) RAISED(突起) SUNKEN(凹陷) GROOVE(凹槽) RIDGE(脊状) from tkinter import * import tkinter top = tkinter . Tk () B1 = tkinter . Button ( top , text = "FLAT" , relief
relief(浮雕)参数如下:
- FLAT(平坦的)
- RAISED(突起)
- SUNKEN(凹陷)
- GROOVE(凹槽)
- RIDGE(脊状)
import tkinter
top = tkinter.Tk()
B1 = tkinter.Button(top, text ="FLAT", relief=FLAT )
B2 = tkinter.Button(top, text ="RAISED", relief=RAISED )
B3 = tkinter.Button(top, text ="SUNKEN", relief=SUNKEN )
B4 = tkinter.Button(top, text ="GROOVE", relief=GROOVE )
B5 = tkinter.Button(top, text ="RIDGE", relief=RIDGE )
B1.pack()
B2.pack()
B3.pack()
B4.pack()
B5.pack()
top.mainloop()
结果如下: