Python Tkinter Frame Example
from tkinter import *
root = Tk()
root.title('Python Tkinter Frame Example')
root.geometry("300x200")
def say_hi():
Label(frame3, text="In func()").pack()
frame1 = Frame(root)
frame2 = Frame(root)
frame3 = Frame(root)
label= Label(frame1,text="Label",justify=LEFT)
label.pack(side=LEFT)
hi_there = Button(frame2,text="say hi~",command=say_hi)
hi_there.pack()
frame1.pack(padx=1,pady=1)
frame2.pack(padx=1,pady=10)
frame3.pack(padx=1,pady=20)
root.mainloop()
