[plt-scheme] Exiting a Scheme GUI-program

From: David Moberg (kaddkaka at gmail.com)
Date: Tue May 11 06:53:35 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)
                                        'Q))))

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

Posted on the users mailing list.