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