#ФонОкнаtkinterPython

Код из видео:



from tkinter import *



root = Tk()

root.title('Фон окна')

root.geometry('1024x512')

root.resizable(width=False, height=False)



root.image = PhotoImage(file='logo.png')

bg_logo = Label(root, image=root.image)

bg_logo.grid(row=0, column=0)



btn = Button(root, text='Это python!', bg='black', fg='lime', font=('Comic Sans MS', 20, 'bold'))

btn.place(relx=0.5, rely=0.5, anchor=CENTER)



root.mainloop()