{"id":3054,"title":"\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043d\u0441\u0435\u0440\u0432\u0438\u0441 \u00ab\u042e\u0411\u0438\u0437\u043d\u0435\u0441\u00bb","url":"\/redirect?component=advertising&id=3054&url=https:\/\/vc.ru\/promo\/230305&hash=e92619a4c6313c5d01568bcc5923b46ce470123d9483a34315aa3e6a0ffaab47","isPaidAndBannersEnabled":false}
Єгор Пасацький

from tkinter import *

root=Tk() root.geometry('400x400')

def btn1(): label2 = Label(text = "Hello "+ ent.get()+'!') label2.place(x=150, y=150) canvas.create_image(100, 0, anchor = NW, image = fl_img)

button1 = Button(text = "Hello", command = btn1) button1.place(x=75,y=75, width=100, height=50)

button2 = Button(text = "Exit", command = root.destroy) button2.place(x=225,y=75, width=100, height=50)

ent = Entry(bd=1) ent.place(x=225,y=25, width=100, height=30)

label1 = Label(text = "Enter your name:") label1.place(x=75, y=25, width=100, height=30)

canvas = Canvas(width = 500, height = 500) canvas.place(x=0, y=200) fl_img = PhotoImage(file = "flowers.png")

root.mainloop()

{ "author_name": "Єгор Пасацький", "author_type": "self", "tags": [], "comments": 0, "likes": 0, "favorites": 0, "is_advertisement": false, "subsite_label": "unknown", "id": 202372, "is_wide": true, "is_ugc": true, "date": "Fri, 29 Jan 2021 15:13:59 +0300", "is_special": false }
0
0 комментариев
Популярные
По порядку

Комментарии

null