按鈕控件的創建:
w = Button(parent, option=value, ...)
可選項:
activebackground:
activeforeground:
anchor:
bd or borderwidth:
bg or background:
bitmap:
command:
cursor:
default:
disabledforeground:
fg or foreground:
font:
height:
highlightbackground:
highlightcolor:
highlightthickness:
image:
justify:
overrelief:
padx:
pady:
relief:
repeatdelay:
repeatinterval:
state:
takefocus:
text:
textvariable:
underline:
width:
wraplength:
可用方法:
flash():
invoke():
示例代碼:
(注:)運行時可能需要刪除中文字符