How to Leave the Python Tkinter Button Input Function

Asked 5 months ago, Updated 5 months ago, 14 views

What can I do if I want to remove the function that I am updating canvas by entering it from the button?

def update():
   canvas.after(10, update)

to a function similar to the one shown in

 if (button press or key input):

The goal is to add .
I would appreciate it if you could let me know if there are any functions to determine whether or not the button has been clicked.

python tkinter

2022-09-30 11:34

1 Answers

I created one variable with the global function and decided there.

2022-09-30 11:34

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.