[plt-scheme] Exiting a scheme program through GUI

From: David Moberg (kaddkaka at gmail.com)
Date: Tue May 11 07:00:31 EDT 2010

I'm making a program with PLT Scheme and I've created my window using (new
frame%) and added a menu with (new menu-bar%).
The simple question is: how do I make a menu-item to close my program?
Should I call some kind of yield? I can't this information :(

My code so far for the buttun is only:

(define quit-item (new menu-item% [parent file-menu] [label "Quit"]
                            (callback (lambda (button event)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100511/6a439e8f/attachment.html>

Posted on the users mailing list.