⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ controles standards ⇨ Radiobutton
tkinter.Radiobutton ( ).flash ( )
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ controles standards ⇨ Radiobutton
tkinter.Radiobutton ( ).flash ( )
DESCRIPTION.
Active et désactive un certain nombre de fois le bouton radio appelant, puis le replace dans son état initial.
SYNTAXE.
RAD_Choix.flash ( )
RAD_Choix = ⇨ instance quelconque de tkinter.Radiobutton ( ) [ OBLIGATOIRE ]
.flash ( ) = appel de la méthode [ OBLIGATOIRE ]
REMARQUE.
Si une fonction est associée au controle appelant, avec son attribut command, celle-ci ne sera pas invoquée, quand le bouton sera en passage activé.
EXEMPLE.
import tkinter
def FNC_Action ( ) :
RAD_Choix1.flash ( )
TKI_Principal.after ( 100 )
RAD_Choix2.flash ( )
TKI_Principal.after ( 100 )
RAD_Choix3.flash ( )
TKI_Principal = tkinter.Tk ( )
TKV_Test = tkinter.StringVar ( )
BUT_Quitter = tkinter.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy )
BUT_Action = tkinter.Button ( TKI_Principal , text = "Flasher" , command = FNC_Action )
RAD_Choix1 = tkinter.Radiobutton ( TKI_Principal , text = "Haut" , value = "Haut" , variable = TKV_Test )
RAD_Choix2 = tkinter.Radiobutton ( TKI_Principal , text = "Centre" , value = "Centre" , variable = TKV_Test )
RAD_Choix3 = tkinter.Radiobutton ( TKI_Principal , text = "Bas" , value = "Bas" , variable = TKV_Test )
RAD_Choix1.pack ( )
RAD_Choix2.pack ( )
RAD_Choix3.pack ( )
BUT_Action.pack ( )
BUT_Quitter.pack ( )
TKV_Test.set ( "Centre" )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de