⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ Style
Eléments des controles de tkinter.ttk
⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ extension ttk ⇨ Style
Eléments des controles de tkinter.ttk
RAPPELS.
Voir la classe tkinter.ttk.Style ( ) pour plus de détails sur la configuration de l'aspect des controles tkinter.ttk.
Pour les éléments, les seuls attributs valides sont : expand, side, sticky et children.
ELEMENTS DES CONTROLES DE TKINTER.TTK.
tkinter.ttk.Style ( ).layout ( "Cell" )
[('Treedata.padding', {'sticky': 'nswe', 'children':
[('Treeitem.text', {'sticky': 'nswe'})]})]
tkinter.ttk.Style ( ).layout ( "ComboboxPopdownFrame" )
[('ComboboxPopdownFrame.border', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "Heading" )
[('Treeheading.cell', {'sticky': 'nswe'}),
('Treeheading.border', {'sticky': 'nswe', 'children':
[('Treeheading.padding', {'sticky': 'nswe', 'children':
[('Treeheading.image', {'side': 'right', 'sticky': ''}),
('Treeheading.text', {'sticky': 'we'})]})]})]
tkinter.ttk.Style ( ).layout ( "Horizontal.TProgressbar" )
[('Horizontal.Progressbar.trough', {'sticky': 'nswe', 'children':
[('Horizontal.Progressbar.pbar', {'side': 'left', 'sticky': 'ns'})]})]
tkinter.ttk.Style ( ).layout ( "Horizontal.Sash" )
[('Sash.hsash', {'sticky': 'we'})]
tkinter.ttk.Style ( ).layout ( "Horizontal.TScrollbar" )
[('Horizontal.Scrollbar.trough', {'sticky': 'we', 'children':
[('Horizontal.Scrollbar.leftarrow', {'side': 'left', 'sticky': ''}),
('Horizontal.Scrollbar.rightarrow', {'side': 'right', 'sticky': ''}),
('Horizontal.Scrollbar.thumb', {'sticky': 'nswe'})]})]
tkinter.ttk.Style ( ).layout ( "Horizontal.TScale" )
[('Horizontal.Scale.trough', {'sticky': 'nswe', 'children':
[('Horizontal.Scale.slider', {'side': 'left', 'sticky': ''})]})]
tkinter.ttk.Style ( ).layout ( "Horizontal.TSeparator" )
[('Separator.separator', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "Item" )
[('Treeitem.padding', {'sticky': 'nswe', 'children':
[('Treeitem.indicator', {'side': 'left', 'sticky': ''}),
('Treeitem.image', {'side': 'left', 'sticky': ''}),
('Treeitem.text', {'sticky': 'nswe'})]})]
tkinter.ttk.Style ( ).layout ( "Sash" )
Layout Sash not found
tkinter.ttk.Style ( ).layout ( "TButton" )
[('Button.border', {'sticky': 'nswe', 'border': '1', 'children':
[('Button.focus', {'sticky': 'nswe', 'children':
[('Button.padding', {'sticky': 'nswe', 'children':
[('Button.label', {'sticky': 'nswe'})]})]})]})]
tkinter.ttk.Style ( ).layout ( "TCheckbutton" )
[('Checkbutton.padding', {'sticky': 'nswe', 'children':
[('Checkbutton.indicator', {'side': 'left', 'sticky': ''}),
('Checkbutton.focus', {'side': 'left', 'sticky': 'w', 'children':
[('Checkbutton.label', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TCheckbutton" )
[('Checkbutton.padding', {'sticky': 'nswe', 'children':
[('Checkbutton.indicator', {'side': 'left', 'sticky': ''}),
('Checkbutton.focus', {'side': 'left', 'sticky': 'w', 'children':
[('Checkbutton.label', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TEntry" )
[('Entry.field', {'sticky': 'nswe', 'border': '1', 'children':
[('Entry.padding', {'sticky': 'nswe', 'children':
[('Entry.textarea', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TFrame" )
[('Frame.border', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "TLabel" )
[('Label.border', {'sticky': 'nswe', 'border': '1', 'children':
[('Label.padding', {'sticky': 'nswe', 'border': '1', 'children':
[('Label.label', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TLabelframe" )
[('Labelframe.border', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "TLabelframe.Label" )
[('Label.fill', {'sticky': 'nswe', 'children':
[('Label.text', {'sticky': 'nswe'})]})]
tkinter.ttk.Style ( ).layout ( "TMenubutton" )
{'padding': '10 3', 'relief': 'raised'}
tkinter.ttk.Style ( ).layout ( "TNotebook" )
[('Notebook.client', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "TNotebook.Tab" )
[('Notebook.tab', {'sticky': 'nswe', 'children':
[('Notebook.padding', {'side': 'top', 'sticky': 'nswe', 'children':
[('Notebook.focus', {'side': 'top', 'sticky': 'nswe', 'children':
[('Notebook.label', {'side': 'top', 'sticky': ''})]})]})]})]
tkinter.ttk.Style ( ).layout ( "Toolbutton" )
[('Toolbutton.border', {'sticky': 'nswe', 'children':
[('Toolbutton.padding', {'sticky': 'nswe', 'children':
[('Toolbutton.label', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TPanedwindow" )
[('Panedwindow.background', {'sticky': ''})]
tkinter.ttk.Style ( ).layout ( "TRadiobutton" )
[('Radiobutton.padding', {'sticky': 'nswe', 'children':
[('Radiobutton.indicator', {'side': 'left', 'sticky': ''}),
('Radiobutton.focus', {'side': 'left', 'sticky': '', 'children':
[('Radiobutton.label', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "Treeview" )
[('Treeview.field', {'sticky': 'nswe', 'border': '1', 'children':
[('Treeview.padding', {'sticky': 'nswe', 'children':
[('Treeview.treearea', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "TScale" )
Layout TScale not found
tkinter.ttk.Style ( ).layout ( "TScrollbar" )
Layout TScrollbar not found
tkinter.ttk.Style ( ).layout ( "TSeparator" )
[('Separator.separator', {'sticky': 'nswe'})]
tkinter.ttk.Style ( ).layout ( "TSizegrip" )
[('Sizegrip.sizegrip', {'side': 'bottom', 'sticky': 'se'})]
tkinter.ttk.Style ( ).layout ( "TSpinbox" )
[('Spinbox.field', {'side': 'top', 'sticky': 'we', 'children':
[('null', {'side': 'right', 'sticky': '', 'children':
[('Spinbox.uparrow', {'side': 'top', 'sticky': 'e'}),
('Spinbox.downarrow', {'side': 'bottom', 'sticky': 'e'})]}),
('Spinbox.padding', {'sticky': 'nswe', 'children':
[('Spinbox.textarea', {'sticky': 'nswe'})]})]})]
tkinter.ttk.Style ( ).layout ( "Vertical.TProgressbar" )
[('Vertical.Progressbar.trough', {'sticky': 'nswe', 'children':
[('Vertical.Progressbar.pbar', {'side': 'bottom', 'sticky': 'we'})]})]
tkinter.ttk.Style ( ).layout ( "Vertical.Sash" )
[('Sash.vsash', {'sticky': 'ns'})]
tkinter.ttk.Style ( ).layout ( "Vertical.TScale" )
[('Vertical.Scale.trough', {'sticky': 'nswe', 'children':
[('Vertical.Scale.slider', {'side': 'top', 'sticky': ''})]})]
tkinter.ttk.Style ( ).layout ( "Vertical.TScrollbar" )
[('Vertical.Scrollbar.trough', {'sticky': 'ns', 'children':
[('Vertical.Scrollbar.uparrow', {'side': 'top', 'sticky': ''}),
('Vertical.Scrollbar.downarrow', {'side': 'bottom', 'sticky': ''}),
('Vertical.Scrollbar.thumb', {'sticky': 'nswe'})]})]
tkinter.ttk.Style ( ).layout ( "Vertical.TSeparator" )
[('Separator.separator', {'sticky': 'nswe'})]
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de