1 ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 ;; about the language level of this file in a form that our tools can easily process.
3 #reader(lib "" "lang")((modname |22.3|) (read-case-sensitive #t) (teachpacks ((lib "" "teachpack" "htdp") (lib "" "teachpack" "htdp") (lib "" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "" "teachpack" "htdp") (lib "" "teachpack" "htdp") (lib "" "teachpack" "htdp")))))
5 (define (change-text event)
6 (draw-message main-message (text-contents main-text)))
8 (define main-message (make-message "What would you like to do today?"))
9 (define main-text (make-text "Hi Aaron!"))
10 (define main-choice (make-message "Choose an option"))
12 (create-window
13 (list (list (make-button "Change Text" change-text)
14 main-text)
15 (list main-message)
16 (list (make-choice (list "Go Shopping"
17 "Watch TV"
18 "Program Scheme"
19 "Sleep")))
20 (list main-choice)))