⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.length
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.length
DESCRIPTION.
Définit ou retourne la longueur du controle dans le sens de son orientation.
SYNTAXE.
length = taille
REMARQUES.
taille est un int ( ) exprimé en pixels.
Le comportement de cet attribut, peut varier selon la combinaison controle / environnement utilisée. Il peut même, dans certain cas, être ignoré.
EXEMPLE.
import tkinter
def FNC_Longueur ( event ) :
SCA_Temoin [ "length" ] = SCA_Longueur.get ( )
TKI_Principal = tkinter.Tk ( )
TKI_Principal.geometry ( "600x120+100+50" )
BUT_Quitter = tkinter.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy )
SCA_Temoin = tkinter.Scale ( TKI_Principal , orient = "horizontal" )
SCA_Longueur = tkinter.Scale ( TKI_Principal , orient = "horizontal" , from_ = 25 , to = 500 , command = FNC_Longueur )
SCA_Temoin.pack ( )
SCA_Longueur.pack ( )
BUT_Quitter.pack ( )
SCA_Longueur.set ( 200 )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de