from tkinter import *

root = Tk()
root.geometry("350x50")

f1 = Frame(root, bg="gray",borderwidth=9,relief=SUNKEN)
f1.pack(side=LEFT,fill="y")

f2 = Frame(root, bg="gray",borderwidth=8,relief=SUNKEN)
f2.pack(side=TOP,fill="x")

l = Label(f1, text="open frame")
l.pack(pady=142)

l2 = Label(f2,text="top frame",font="helvetica 9 bold",fg="red",pady=20)
l2.pack()


root.mainloop()
02faef3bc1da5f0fc89277d1368275ed307eb03f
<mask token>

<mask token>
root.geometry('350x50')
<mask token>
f1.pack(side=LEFT, fill='y')
<mask token>
f2.pack(side=TOP, fill='x')
<mask token>
l.pack(pady=142)
<mask token>
l2.pack()
root.mainloop()

<mask token>
root = Tk()
root.geometry('350x50')
f1 = Frame(root, bg='gray', borderwidth=9, relief=SUNKEN)
f1.pack(side=LEFT, fill='y')
f2 = Frame(root, bg='gray', borderwidth=8, relief=SUNKEN)
f2.pack(side=TOP, fill='x')
l = Label(f1, text='open frame')
l.pack(pady=142)
l2 = Label(f2, text='top frame', font='helvetica 9 bold', fg='red', pady=20)
l2.pack()
root.mainloop()

from tkinter import *
root = Tk()
root.geometry('350x50')
f1 = Frame(root, bg='gray', borderwidth=9, relief=SUNKEN)
f1.pack(side=LEFT, fill='y')
f2 = Frame(root, bg='gray', borderwidth=8, relief=SUNKEN)
f2.pack(side=TOP, fill='x')
l = Label(f1, text='open frame')
l.pack(pady=142)
l2 = Label(f2, text='top frame', font='helvetica 9 bold', fg='red', pady=20)
l2.pack()
root.mainloop()

from tkinter import *

root = Tk()
root.geometry("350x50")

f1 = Frame(root, bg="gray",borderwidth=9,relief=SUNKEN)
f1.pack(side=LEFT,fill="y")

f2 = Frame(root, bg="gray",borderwidth=8,relief=SUNKEN)
f2.pack(side=TOP,fill="x")

l = Label(f1, text="open frame")
l.pack(pady=142)

l2 = Label(f2,text="top frame",font="helvetica 9 bold",fg="red",pady=20)
l2.pack()


root.mainloop()