from tkinter import *

def hello(event):
    print("")
def h(event):
    print("")
def e(event):
    print("")
def l(event):
    print("")
def lo(event):
    print("")

root = Tk()
root.wm_title("Frame Exercise")

main = Frame(root)
main.pack()

top_row = Frame(main)
top_row.pack()
bottom_row = Frame(main)
bottom_row.pack()

top_left = Frame(top_row, bg= 'yellow', width = 300, height =150)
top_left.pack(side = LEFT)
top_left.bind("<ButtonPress>", hello)
top_right = Frame(top_row, bg= 'cyan', width = 300, height =150)
top_right.pack(side = LEFT)
top_right.bind("<ButtonPress>", h)

bottom_left = Frame(bottom_row, bg= 'red', width = 200, height =150)
bottom_left.pack(side = LEFT)
bottom_left.bind("<ButtonPress>", e)
bottom_mid = Frame(bottom_row, bg= 'green', width = 200, height =150)
bottom_mid.pack(side = LEFT)
bottom_mid.bind("<ButtonPress>", l)
bottom_right = Frame(bottom_row, bg= 'blue', width = 200, height =150)
bottom_right.pack(side = LEFT)
bottom_right.bind("<ButtonPress>", lo)


root.mainloop()
