from tkinter import *

window = Tk()
window.geometry('400x400')


btn_1 = Button(window, text='btn_1', bg='red')
btn_2 = Button(window, text='btn_2', bg='yellow')
btn_3 = Button(window, text='btn_3', bg='green')

# 수평 방향 정렬 : side=LEFT/RIGHT
# btn_1.pack(side=LEFT)
# btn_2.pack(side=LEFT)
# btn_3.pack(side=LEFT)

# 수직 방향 정렬 : side=TOP/BOTTOM
# btn_1.pack(side=BOTTOM)
# btn_2.pack(side=BOTTOM)
# btn_3.pack(side=BOTTOM)

# 위젯의 폭 설정 : fill
btn_1.pack(fill=X, padx=10, pady=10, ipadx=30, ipady=30)
btn_2.pack(fill=X, padx=10, pady=10, ipadx=30, ipady=30)
btn_3.pack(fill=X, padx=10, pady=10, ipadx=30, ipady=30)


window.mainloop()