import tkinter as tk
def change():
root.geometry("400x300")
root.config(bg="green")
root.title("Івано-Франківськ")
root = tk.Tk()
btn = tk.Button(root, text="Нажми на мене)", command=change).pack()
root.mainloop()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
import tkinter as tk
def change():
root.geometry("400x300")
root.config(bg="green")
root.title("Івано-Франківськ")
root = tk.Tk()
btn = tk.Button(root, text="Нажми на мене)", command=change).pack()
root.mainloop()