Advertisement
Najeebsk

GUI-EXAMPLE2.py

Jan 11th, 2022
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import tkinter as tk
  2.  
  3. window = tk.Tk()
  4.  
  5. frame1 = tk.Frame(master=window, width=200, height=100, bg="red")
  6. frame1.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
  7.  
  8. frame2 = tk.Frame(master=window, width=100, bg="yellow")
  9. frame2.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
  10.  
  11. frame3 = tk.Frame(master=window, width=50, bg="blue")
  12. frame3.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
  13.  
  14. window.mainloop()
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement