⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ Style
tkinter.ttk.Style ( ).theme_create ( )
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ Style
tkinter.ttk.Style ( ).theme_create ( )
DESCRIPTION.
Retourne un tuple ( ) avec le nom de tous les thèmes présent au moment de l'appel.
SYNTAXE.
TPL_Themes = tkinter.ttk.Style ( ).theme_names ( )
TPL_Themes = ⇨ variable qui recevra le tuple ( ) [ optionnel ]
tkinter.ttk.Style ( ).theme_names ( ) ⇨ appel de la méthode [ OBLIGATOIRE ]
EXEMPLE.
import tkinter , tkinter.ttk
TKI_Principal = tkinter.Tk ( )
tkinter.ttk.Label ( TKI_Principal , text = "Thèmes de base :" ).pack ( )
tkinter.ttk.Label ( TKI_Principal , text = tkinter.ttk.Style ( ).theme_names ( ) ).pack ( )
tkinter.ttk.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy ).pack ( )
TKI_Principal.mainloop ( )
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de