#TkinterPack
Код из видео:
from tkinter import *
root = Tk()
root.title('Тестовое приложение')
root.geometry('1280x720')
root.resizable(width=False, height=False)
# root.config(bg = 'black')
root['bg'] = 'black'
l1 = Label(root, text='1', font='15', fg='white', bg='yellow', width=8, height=4).pack(side=LEFT)
l2 = Label(root, text='2', font='15', fg='white', bg='brown', width=8, height=4).pack(side=RIGHT)
l3 = Label(root, text='3', font='15', fg='white', bg='blue', width=8, height=4).pack(side=TOP)
l4 = Label(root, text='4', font='15', fg='white', bg='pink', width=8, height=4).pack(side=BOTTOM)
l6 = Label(root, text='6', font='15', fg='white', bg='yellow', width=8, height=4).pack(expand=1, anchor=SE)
root.mainloop()
Код из видео:
from tkinter import *
root = Tk()
root.title('Тестовое приложение')
root.geometry('1280x720')
root.resizable(width=False, height=False)
# root.config(bg = 'black')
root['bg'] = 'black'
l1 = Label(root, text='1', font='15', fg='white', bg='yellow', width=8, height=4).pack(side=LEFT)
l2 = Label(root, text='2', font='15', fg='white', bg='brown', width=8, height=4).pack(side=RIGHT)
l3 = Label(root, text='3', font='15', fg='white', bg='blue', width=8, height=4).pack(side=TOP)
l4 = Label(root, text='4', font='15', fg='white', bg='pink', width=8, height=4).pack(side=BOTTOM)
l6 = Label(root, text='6', font='15', fg='white', bg='yellow', width=8, height=4).pack(expand=1, anchor=SE)
root.mainloop()
🔥1