On Mon, Mar 11, 2013 at 12:56 AM, Laurent <laurent.ors...@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!
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to