Question: Racket programming: How to disable a button AFTER its clicked on in racket? I know how to make a button which goes like this: (define
Racket programming: How to disable a button AFTER its clicked on in racket? I know how to make a button which goes like this: (define testbutton (new button% [parent frame] [label "test"] [min-width 20] [min-height 10] [callback (lambda (b e) (if (string-locale=? UserCompA "empty") (set! monkey "hi") (set! monkey "hi")) )] )) and i know [enabled #f] disables the button but my question is how to make it disable the button after I click on it?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
