import tkinter as tk
root = tk.Tk()
root.title("Форма")
root.geometry("320x580")
root.configure(bg="#d3d0c8")
# --- Верх ---
tk.Label(root, text="Ваш адрес:", bg="#d3d0c8", font=("Arial", 10, "bold")).pack(anchor="w", padx=25, pady=(15, 0))
tk.Entry(root, bg="#fcf6c5", relief="solid", bd=1).pack(fill="x", padx=25, pady=(0, 8))
tk.Label(root, text="Комментарий:", bg="#d3d0c8", font=("Arial", 10, "bold")).pack(anchor="w", padx=25)
tk.Text(root, height=5, bg="#ffffff", relief="solid", bd=1).pack(fill="x", padx=25, pady=(0, 12))
tk.Button(root, text="Отправить", bg="#9acfe6", font=("Arial", 10, "bold"),
relief="solid", bd=1, activebackground="#7bbfdb").pack(fill="x", padx=25, pady=(0, 20))
# --- Низ ---
tk.Label(root, text="Сколько штук?", bg="#d3d0c8", font=("Arial", 10)).pack()
for val in ["0-10", "11-20", "21-30", "31-40"]:
tk.Radiobutton(root, text=val, bg="#d3d0c8", font=("Arial", 9),
activebackground="#d3d0c8").pack(anchor="center")
tk.Label(root, text="Какого цвета?", bg="#d3d0c8", font=("Arial", 10)).pack(pady=(10, 5))
# Цветные чекбоксы
colors = [("RED", "#ff3333"), ("BLUE", "#3333ff"), ("GREEN", "#66ff33"), ("YELLOW", "#ffff33")]
for name, color in colors:
tk.Checkbutton(root, text=name, bg=color, font=("Arial", 9, "bold"),
activebackground=color, anchor="w", padx=8, pady=2,
relief="solid", bd=1).pack(fill="x", padx=25, pady=1)
root.mainloop()