ДАЮ 40 БАЛЛОВ!! Решите прошу
Код програми
from tkinter import *
root = Tk()
def ff(event):
a.config(bg="red")

def ff_del(event):
first_name_entry.delete(0, END)
first_last_name_entry.delete(0, END)
first_name_entry.insert(0, "Петро")
first_last_name_entry.insert(0, "Петренко")
male.select()
a = Label(root, text="Анкета")
first_name = Label(root, text="Введіть ваше ім’я")
first_name_entry = Entry(root)
first_last_name = Label(root, text="Введіть ваше прізвище")
first_last_name_entry = Entry(root)
male = Checkbutton(root, text="чол")
female = Checkbutton(root, text="жін")
light = Button(root, text="Підсвітити заголовок")
light.bind(" ", ff)
by_default = Button(root, text="За замовчуванням")
by_default.bind(" ", ff_del)
a.pack()
first_name.pack()
first_name_entry.pack()
first_last_name.pack()
first_last_name_entry.pack()
male.pack()
female.pack()
light.pack()
by_default.pack()
root.mainloop()
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.