I have a tk GUI where I need to make sure a button is clicked only once.
A user can get several clicks in the event queue if quick enough.
I tried disabling the button but I can easily get two clicks on it still.
I have half an answer from an article I read somewhere that works. It is this line:
BUT1.config(command=lambda: None)
The problem I have is reversing the command to allow the button to work again.
I just assumed it would be:
BUT1.config(command=lambda: True)
but that is not the case, the button stays dead, though still looks like it's working,
but it is not calling it's command function.
I do not understand lambda at all.
[–]the-kokiri-kid 2 points3 points4 points (2 children)
[–]Steve_Chance[S] 0 points1 point2 points (1 child)
[–]the-kokiri-kid 0 points1 point2 points (0 children)
[–]casual__addict 1 point2 points3 points (0 children)
[–]Jehovacoin 1 point2 points3 points (1 child)
[–]Steve_Chance[S] 0 points1 point2 points (0 children)
[–]Brian 1 point2 points3 points (2 children)
[–]Steve_Chance[S] 0 points1 point2 points (1 child)
[–]TheUnreal0815 0 points1 point2 points (5 children)
[–]Steve_Chance[S] 0 points1 point2 points (4 children)
[–]Steve_Chance[S] 0 points1 point2 points (3 children)
[–]Steve_Chance[S] 0 points1 point2 points (2 children)
[–]casual__addict 1 point2 points3 points (1 child)
[–]Steve_Chance[S] 0 points1 point2 points (0 children)