f2.pack(fill='x') for color in style.colors: ttk.Button(f2, text=color.title(), style=f'{color}.Outline.TButton').pack(side='left', fill='x', expand='yes', padx=2) f3 = ttk.Frame(root, padding=5) f3.pack(fill='x') om_var = tkinter.StringVar() for color in style.colors: ttk.OptionMenu(f3, om_var, 'Option Menu', *style.theme_names(), style=f'{color}.TMenubutton').pack(side='left', fill='x', expand='yes', padx=2) f4 = ttk.Frame(root, padding=5) f4.pack(fill='x') for color in style.colors: ttk.Scale(f4, from_=1, to=100, value=25, style=f'{color}.Horizontal.TScale').pack(side='left', fill='x', expand='yes',
f1 = ttk.Frame(root, padding=5) f1.pack(fill='x', padx=25, pady=25) for color in style.colors: ttk.Button(f1, text=color.title(), style=f'{color}.TButton').pack(side='left', fill='x', expand='yes', padx=2) f2 = ttk.Frame(root, padding=5) f2.pack(fill='x') for color in style.colors: ttk.Button(f2, text=color.title(), style=f'{color}.Outline.TButton').pack(side='left', fill='x', expand='yes', padx=2) f3 = ttk.Frame(root, padding=5) f3.pack(fill='x') om_var = tkinter.StringVar() for color in style.colors: ttk.OptionMenu(f3, om_var, 'Option Menu', *style.theme_names(), style=f'{color}.TMenubutton').pack(side='left', fill='x', expand='yes', padx=2) f4 = ttk.Frame(root, padding=5) f4.pack(fill='x') for color in style.colors: ttk.Scale(f4, from_=1, to=100, value=25, style=f'{color}.Horizontal.TScale').pack(side='left', fill='x', expand='yes', padx=2) f5 = ttk.Frame(root, padding=5) f5.pack(fill='x') for color in style.colors: tv = ttk.Treeview(f5, height=1, style=f'{color}.Treeview') tv.pack(side='left', fill='x', expand='yes', padx=2) tv.heading('#0', text='Example heading') f6 = ttk.Frame(root, padding=5) f6.pack(fill='x')