from tkinter import *
root = Tk()
root.title("Упаковщики")
root.minsize(width=500, height=400)
button1 = Button(text="1")
button2 = Button(text="2")
button3 = Button(text="3")
button4 = Button(text="4")
button5 = Button(text="5")
button1.pack(side='left')
button2.pack(side='top')
button3.pack(side='left')
button4.pack(side='bottom')
button5.pack(side='right')
root.mainloop()
from tkinter import *
root=Tk()
text = Text(wrap=NONE)
vscrollbar = Scrollbar(orient='vert', command=text.yview)
text['yscrollcommand'] = vscrollbar.set
hscrollbar = Scrollbar(orient='hor', command=text.xview)
text['xscrollcommand'] = hscrollbar.set
# размещаем виджеты
text.grid(row=0, column=0, sticky='nsew')
vscrollbar.grid(row=0, column=1, sticky='ns')
hscrollbar.grid(row=1, column=0, sticky='ew')
# конфигурируем упаковщик, чтобы текстовый виджет расширялся
root.rowconfigure(0, weight=1)
root.columnconfigure(0, weight=1)
root.mainloop()
button1.place(x=0,y=0)
from tkinter import *
root = Tk()
root.geometry('300x300')
Button(bg='red').place(x=75, y=20)
Button(bg='green').place(relx=0.3, rely=0.5)
root.mainloop()
from tkinter import *
root = Tk()
root.geometry('300x300')
Label(bg='white').place(x=10, y=10,
width=50, height=30)
Label(bg='green').place(x=10, y=50,
relwidth=0.3, relheight=0.15)
root.mainloop()