Ответ:
import tkinter as tk
root = tk.Tk()
root.title("Break Time")
root.geometry("400x200")
label = tk.Label(root, text="It's time for a break!", font=("Helvetica", 16), fg="red")
label.pack(pady=20)
button = tk.Button(root, text="OK", command=root.destroy)
button.pack()
root.mainloop()
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
import tkinter as tk
root = tk.Tk()
root.title("Break Time")
root.geometry("400x200")
label = tk.Label(root, text="It's time for a break!", font=("Helvetica", 16), fg="red")
label.pack(pady=20)
button = tk.Button(root, text="OK", command=root.destroy)
button.pack()
root.mainloop()
Объяснение: