[plt-scheme] How does a GUI application terminate?

From: Woodhouse Gregory (gregory.woodhouse at gmail.com)
Date: Tue Aug 26 17:29:39 EDT 2008

I'm trying to get my feet wet with GUI applications, and one thing  
that's not clear to me is how to ask an application to close. Right  
now, I have code that looks like this for the "Close" menu item

(define mi-quit (new menu-item% [label "Quit"]
                                  [callback
                                  (lambda (item evt)
                                    (printf "Invoking ~s  
menu...~n" (send item get-label))
                                    (send f show #f))]
                                  [parent m-file]))

but then it seems that I ought to signal that event processing should  
stop. My first thought was something like (send f close), but there  
is no close method in frame%.

"Judge a man by his questions not
his answers."   --Voltaire

http://www.gwoodhouse.com
http://GregWoodhouse.ImageKind.com





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080826/de192e44/attachment.html>

Posted on the users mailing list.