[racket] plot-frame does not wait at end of process

From: Danny Yoo (dyoo at hashcollision.org)
Date: Mon Mar 11 05:12:13 EDT 2013

On Mon, Mar 11, 2013 at 12:56 AM, Laurent <laurent.orseau at gmail.com> wrote:
> When run from the command line, the following program does not wait for the
> frame to be closed, but closes it immediately and ends the program:

Hi Laurent,

You want to synchronize on the frame's eventspace: this will block
till the windows are closed.

#lang racket/gui
(require plot)
(define f (plot-frame (lines '((0 0)(1 1)))))
(send f show #t)
(sync (send f get-eventspace))

Best of wishes!

Posted on the users mailing list.