[plt-scheme] HtDP GUI

From: Gadfly (dyrueta at gmail.com)
Date: Sat Nov 28 18:49:54 EST 2009

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

Dave Yrueta

Posted on the users mailing list.