Справочник Программиста
6.29K subscribers
1.36K photos
387 videos
64 files
1.71K links
По рекламе - @it_start_programmer
Мои курсы - @courses_from_it_start_bot
Сайт - https://it-start.online/
YouTube - https://www.youtube.com/@it_start
Реклама на бирже - https://telega.in/c/programmersGuide_1

Предложить идею: @it_start_suggestion_bot
Download Telegram
#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()
🔥1