⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.sashrelief
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs
tkinter.sashrelief
DESCRIPTION.
Définit ou retourne l'aspect des lignes de séparation d'un bandeau de controles
SYNTAXE.
sashrelief = aspect
REMARQUES.
aspect doit être un str ( ) parmi l'un des styles suivants : "solid" - "flat" - "raised" - "sunken" - "groove" - "ridge".
EXEMPLE.
import tkinter
def FNC_Relief ( ) :
FRM_Bandeau [ "sashrelief" ] = SPI_Relief.get ( )
TKI_Principal = tkinter.Tk ( )
FRM_Bandeau = tkinter.PanedWindow ( TKI_Principal , sashwidth = 10 )
BUT_Quitter = tkinter.Button ( FRM_Bandeau , text = "Quitter" , command = TKI_Principal.destroy )
SPI_Relief = tkinter.Spinbox ( FRM_Bandeau , values = ( "solid" , "raised" , "sunken" , "groove" , "ridge", "flat" ) , command = FNC_Relief )
FRM_Bandeau.add ( tkinter.Label ( FRM_Bandeau , text = "Relief : " ) )
FRM_Bandeau.add ( SPI_Relief )
FRM_Bandeau.add ( BUT_Quitter )
FRM_Bandeau.pack ( )
FNC_Relief ( )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de