Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- window = tk.Tk()
- frame1 = tk.Frame(master=window, height=60, bg="red")
- frame1.pack(fill=tk.X)
- frame2 = tk.Frame(master=window, height=60, bg="yellow")
- frame2.pack(fill=tk.X)
- frame3 = tk.Frame(master=window, height=60, bg="blue")
- frame3.pack(fill=tk.X)
- frame4 = tk.Frame(master=window, height=60, bg="black")
- frame4.pack(fill=tk.X)
- frame5 = tk.Frame(master=window, height=60, bg="pink")
- frame5.pack(fill=tk.X)
- frame6 = tk.Frame(master=window, height=60, bg="white")
- frame6.pack(fill=tk.X)
- frame7 = tk.Frame(master=window, height=60, bg="green")
- frame7.pack(fill=tk.X)
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement