[plt-scheme] HtDP GUI
On Nov 28, 2009, at 6:49 PM, Gadfly wrote:
> Hi All --
>
> Is there a way to get a make-choice gui to dynamically reflect the
> value of a state variable?
>
> (define test-list (list "a" "b" "c"))
>
> (define choiceMenu (make-choice test-list))
>
> (create-window (list (list choiceMenu)))
> ;menu lists choices a, b and c
>
> (set! test-list (list "a"))
> ;menu lists only a
Think of make-choice as a structure constructor.
What could the above mean then? Intermezzo 7 should
explain why this can't possibly work then.