Mar-07-2020, 12:46 AM
(This post was last modified: Mar-07-2020, 12:47 AM by catlessness.)
the problem is I dont really know if there is this function to focus on the entry changed, this is the closest i can give:
import tkinter as tk window=tk.Tk() window.geometry('450x500') frame=tk.Frame(window,height=500,width=500) frame.place(x=0,y=0) def func(var): print('the following one is the problem, i dont know if it has this function') #pointer={an entry that has been changed} a=tk.Entry(frame,show=None,textvariable=tk.StringVar(value=1)) b=tk.Entry(frame,show=None,textvariable=tk.StringVar(value=2)) c=tk.Entry(frame,show=None,textvariable=tk.StringVar(value=3)) a.place(x=20,y=20) b.place(x=20,y=40) c.place(x=20,y=60) window.bind('<Key>',func) window.mainloop()