# 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")
# 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")