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, width=200, height=100, bg="red")
- frame1.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
- frame2 = tk.Frame(master=window, width=100, bg="yellow")
- frame2.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
- frame3 = tk.Frame(master=window, width=50, bg="blue")
- frame3.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement