Button font: underline italic : Font « 2D « Python






Button font: underline italic

Button font: underline italic

from Tkinter import *
widget = Button(text='Spam', padx=10, pady=10)
widget.pack(padx=20, pady=20)
widget.config(font=('helvetica', 20, 'underline italic'))
mainloop()

           
       








Related examples in the same category

1.Checkbuttons demonstration: set fontCheckbuttons demonstration: set font
2.Checkbutton to set font to boldCheckbutton to set font to bold
3.Radiobuttons demonstration set Font in TextRadiobuttons demonstration set Font in Text
4.Set Button style: fontSet Button style: font
5.Set font from Root componentSet font from Root component
6.Label fontLabel font