from tkinter import *

root = Tk()

label1 = Label(root, text="yes", bg="green")
label1.pack(fill=X,side="top")

label2 = Label(root, text="no", bg="yellow")
label2.pack(fill=Y,side="right")

label3 = Label(root, text="maybe", bg="blue")
label3.pack(fill=Y,side="left")

label4 = Label(root, text="maybe not", bg="red")
label4.pack(fill=X,side="bottom")

root.mainloop()


60e112b83dbbfaccdc27ab6d5d3587ac9b7d2f73
<mask token>

<mask token>
label1.pack(fill=X, side='top')
<mask token>
label2.pack(fill=Y, side='right')
<mask token>
label3.pack(fill=Y, side='left')
<mask token>
label4.pack(fill=X, side='bottom')
root.mainloop()

<mask token>
root = Tk()
label1 = Label(root, text='yes', bg='green')
label1.pack(fill=X, side='top')
label2 = Label(root, text='no', bg='yellow')
label2.pack(fill=Y, side='right')
label3 = Label(root, text='maybe', bg='blue')
label3.pack(fill=Y, side='left')
label4 = Label(root, text='maybe not', bg='red')
label4.pack(fill=X, side='bottom')
root.mainloop()

from tkinter import *
root = Tk()
label1 = Label(root, text='yes', bg='green')
label1.pack(fill=X, side='top')
label2 = Label(root, text='no', bg='yellow')
label2.pack(fill=Y, side='right')
label3 = Label(root, text='maybe', bg='blue')
label3.pack(fill=Y, side='left')
label4 = Label(root, text='maybe not', bg='red')
label4.pack(fill=X, side='bottom')
root.mainloop()

from tkinter import *

root = Tk()

label1 = Label(root, text="yes", bg="green")
label1.pack(fill=X,side="top")

label2 = Label(root, text="no", bg="yellow")
label2.pack(fill=Y,side="right")

label3 = Label(root, text="maybe", bg="blue")
label3.pack(fill=Y,side="left")

label4 = Label(root, text="maybe not", bg="red")
label4.pack(fill=X,side="bottom")

root.mainloop()

