View raw

1 from tkinter import ttk # Normal Tkinter.* widgets are not themed! 2 from ttkthemes import ThemedTk 3 4 window = ThemedTk(theme="equilux") 5 frame1 = ttk.Frame(window) 6 but1 = ttk.Button(frame1, text="Quit", command=window.destroy).pack() 7 frame2 = ttk.Frame(window) 8 but2 = ttk.Button(frame2, text="Quit", command=window.destroy).pack() 9 but3 = ttk.Button(frame2, text="Quit", command=window.destroy).pack() 10 frame1.pack() 11 frame2.pack() 12 window.mainloop() 13