tkinterのボタンのレリーフスタイル
Relief Style Buttons Tkinter
レリーフパラメータは次のとおりです。
- フラット(フラット)
- RAISED(突起)
- SUNKEN(うつ病)
- 溝
- RIDGE(尾根)
from tkinter import * 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()
結果は次のとおりです。