Advertisement
here2share

# Tk_frames.py

Oct 17th, 2018
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. # Tk_frames.py
  2.  
  3. from Tkinter import*
  4.  
  5. master=Tk()
  6. master.geometry("400x300")
  7.  
  8. frame1=Frame(master, width=200, height=150, background="Blue")
  9. frame1.grid(row=0, column=0)
  10.  
  11. frame2=Frame(master, width=200, height=150, background="Red")
  12. frame2.grid(row=1, column=0)
  13.  
  14. frame3=Frame(master, width=200, height=150, background="Green")
  15. frame3.grid(row=0, column=1)
  16.  
  17. frame4=Frame(master, width=200, height=150, background="Yellow")
  18. frame4.grid(row=1, column=1)
  19.  
  20. master.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement