My current GUI program, in part, will display a button which the user may choose to press (or not, in some cases):
btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2)
btn1.configure(state=NORMAL,background='red' )
btn1.pack()
This is basic and works fine.
The issue I am having is that after the button is chosen and pressed I would like this button to become disabled; this would require an update of sorts. Logically, as far as I can tell, this would be to use update_idletasks(). I have used this in other areas of the code with animation (the display of GIFs, etc) and it works most excellent. I have tried it along with the above code but it does not disable the button as I wish it to:
btn1.update_idletasks()
btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2)
btn1.configure(state=DISABLE,background='red' )
btn1.pack()
The syntax is incorrect and\or I am missing something that should be in there. I have the suspicion that there is more to updating a widget (a button) than there is a GIF but no research or documentation has shown this.
Thank-you for all help in advance.
sharky_machine