Tkinter中的button使用

按鈕控件的創建:

    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():

 

示例代碼:

 (注:)運行時可能需要刪除中文字符

  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章