⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ liste des attributs
tkinter.ttk.sashrelief
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ liste des attributs
tkinter.ttk.sashrelief
DESCRIPTION.
Définit ou retourne l'aspect de la glissière 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".
Dans le plupart des thèmes, les styles "TPanedwindow" et "Sash" n'affiche pas les lignes de séparation et leur poignée, mais cet attribut reste disponible en lecture seulement.
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 , tkinter.ttk
def FNC_Relief ( ) :
tkinter.ttk.Style ( ).configure ( "Sash" , sashrelief = SPI_Relief.get ( ) )
TKI_Principal = tkinter.Tk ( )
STY_Style = tkinter.ttk.Style ( )
STY_Style.theme_use ( "classic" )
SPI_Relief = tkinter.Spinbox ( TKI_Principal , values = ( "solid" , "raised" , "sunken" , "groove" , "ridge", "flat" ) , command = FNC_Relief )
FRM_Bandeau = tkinter.ttk.PanedWindow ( TKI_Principal , orient = "horizontal" )
for kcase in range ( 5 ) : FRM_Bandeau.add ( tkinter.Label ( text = f"\n - { kcase } - \n") )
FRM_Bandeau.add ( tkinter.Button ( text = "Style : classic" , command = lambda : STY_Style.theme_use ( "classic" ) ) )
FRM_Bandeau.add ( tkinter.Button ( text = "Style : clam" , command = lambda : STY_Style.theme_use ( "clam" ) ) )
FRM_Bandeau.add ( tkinter.Button ( text = "Quitter" , command = TKI_Principal.destroy ) )
FRM_Bandeau.pack ( )
SPI_Relief.pack ( )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de