Python realizes that the button in Tkinter is only triggered once

# After the button is clicked once, set the button to be unclickable
self.Command4.configure(state=DISABLED)
# After the program is executed, restore the clickable state of the button
self.Command4.config(state="normal")

Guess you like

Origin blog.csdn.net/ducanwang/article/details/131536575