Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_frames.py
- from Tkinter import*
- master=Tk()
- master.geometry("400x300")
- frame1=Frame(master, width=200, height=150, background="Blue")
- frame1.grid(row=0, column=0)
- frame2=Frame(master, width=200, height=150, background="Red")
- frame2.grid(row=1, column=0)
- frame3=Frame(master, width=200, height=150, background="Green")
- frame3.grid(row=0, column=1)
- frame4=Frame(master, width=200, height=150, background="Yellow")
- frame4.grid(row=1, column=1)
- master.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement