How to Leave the Python Tkinter Button Input Function

Asked 2 years ago, Updated 2 years ago, 70 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):
    return

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


© 2024 OneMinuteCode. All rights reserved.