Advertisement
Najeebsk

GUI-EXAMPLE.py

Jan 11th, 2022
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. import tkinter as tk
  2.  
  3. window = tk.Tk()
  4.  
  5. frame1 = tk.Frame(master=window, height=60, bg="red")
  6. frame1.pack(fill=tk.X)
  7.  
  8. frame2 = tk.Frame(master=window, height=60, bg="yellow")
  9. frame2.pack(fill=tk.X)
  10.  
  11. frame3 = tk.Frame(master=window, height=60, bg="blue")
  12. frame3.pack(fill=tk.X)
  13.  
  14. frame4 = tk.Frame(master=window, height=60, bg="black")
  15. frame4.pack(fill=tk.X)
  16.  
  17. frame5 = tk.Frame(master=window, height=60, bg="pink")
  18. frame5.pack(fill=tk.X)
  19.  
  20. frame6 = tk.Frame(master=window, height=60, bg="white")
  21. frame6.pack(fill=tk.X)
  22.  
  23. frame7 = tk.Frame(master=window, height=60, bg="green")
  24. frame7.pack(fill=tk.X)
  25.  
  26. window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement