Radiobutton Récupérer texte
Bonjour,
J'ai un petit problème j'ai un programme où je dois récupérer un texte d'un radiobutton. Je ne trouve cette information nulle part car tout le monde cherhce à récupérer la valeur et non le texte de ce radiobutton.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
R1 = Radiobutton(root, text="Dollars Américains", variable=val, value=1,command=sel)
R1.pack( anchor = W )
R3 = Radiobutton(root, text="Livres Libanaise", variable=val, value=2,command=sel)
R3.pack( anchor = W)
R4 = Radiobutton(root, text="Livres Britannique", variable=val, value=3,command=sel)
R4.pack( anchor = W)
R5 = Radiobutton(root, text="Yuans", variable=val, value=4,command=sel)
R5.pack( anchor = W)
R6 = Radiobutton(root, text="Shekels", variable=val, value=5,command=sel)
R6.pack( anchor = W)
monnaie_arrivee=text.get() |
Voila mon programme et je cherche à prendre le texte du bouton choisi
Merci de votre aide