⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.showvalue
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.showvalue
DESCRIPTION.
Définit ou retourne si la valeur sélectionnée dans une échelle de valeurs est visible.
SYNTAXE.
showvalue = booleen
REMARQUES.
booleen est un bool ( ). Si showvalue = False les valeurs ne sont pas visible. Si showvalue = True , valeur par défaut, les valeurs sont affichées.
EXEMPLE.
import tkinter
def FNC_Visible ( ) :
SCA_Temoin [ "showvalue" ] = TKV_Visible.get ( )
TKI_Principal = tkinter.Tk ( )
TKV_Visible = tkinter.BooleanVar ( )
BUT_Quitter = tkinter.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy )
SCA_Temoin = tkinter.Scale ( TKI_Principal , orient = "horizontal" )
CKB_Visible = tkinter.Checkbutton ( TKI_Principal , text = "Afficher" , onvalue = True , offvalue = False , variable = TKV_Visible , command = FNC_Visible )
SCA_Temoin.pack ( )
CKB_Visible.pack ( )
BUT_Quitter.pack ( )
TKV_Visible.set ( True )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de