Tkinter : position du texte dns un bouton
Résolu
MathKode
Messages postés
28
Statut
Membre
-
MathKode -
MathKode -
Bonjour, je voudrais savoir comment faire apparaitre un texte à gauche/droite dans un bouton (car, leur position par défaut est au centre)
Et la le text aparait au milieu. J'ai fait des testes avec justify='right' mais ça ne change rien.
from tkinter import *
def salut() :
print('salut à toi')
window = Tk()
window.title("Bouton Teste")
window.geometry("500x500")
window.minsize(500,500)
Bouton_titre = Button(window,text="Saluer",font=("Arial",20),bg="white",fg="black",width=10,height=2,command=salut)
Bouton_titre.pack()
window.mainloop()
Et la le text aparait au milieu. J'ai fait des testes avec justify='right' mais ça ne change rien.
A voir également:
- Tkinter : position du texte dns un bouton
- Probleme tkinter injustifier - Forum Python
- Pygame ou tkinter ? - Forum Python
- Probleme collision avec tkinter - Forum Python
- Problème avec grid tkinter ✓ - Forum Python
- Tkinter canvas rotate - Forum Python