Les options background, foreground et font d'un bouton python tkinter

Dans ce tutoriel python Tkinter, nous allons voir comment utiliser les options background (bg), foreground (fg) et font pour un objet button Tkinter.

  1. background (bg) : définit la couleur d'arrière-plan du bouton Tkinter.
  2. foreground (fg) : définit la couleur du texte du bouton Tkinter.
  3. font : défint le type et la taille de la police pour le texte du bouton Tkinter.

Exemple

Après exécution du code on obtient la fenêtre suivante:




Younes Derfoufi
CRMEF OUJDA

1 thought on “Les options background, foreground et font d'un bouton python tkinter

Leave a Reply

Your email address will not be published. Required fields are marked *