from tkinter import *
def KeyPress(event):
root["bg"] = "red"
root.title("Ваше прізвище")
root.geometry("300x200")
root = Tk()
root.title("Початок")
root.geometry("500x500")
root.bind('<Button-1>', KeyPress)
root.mainloop()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from tkinter import *
def KeyPress(event):
root["bg"] = "red"
root.title("Ваше прізвище")
root.geometry("300x200")
root = Tk()
root.title("Початок")
root.geometry("500x500")
root.bind('<Button-1>', KeyPress)
root.mainloop()