From 36692c31cf639a54d93758428e27266a278b0941 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 27 Oct 2014 11:59:11 -0400 Subject: move the "wait for window close" logic into renderfractal --- examples/mandelbrot.jl | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'examples') diff --git a/examples/mandelbrot.jl b/examples/mandelbrot.jl index 2b9d26d..9bcc818 100644 --- a/examples/mandelbrot.jl +++ b/examples/mandelbrot.jl @@ -9,19 +9,3 @@ imgsize = (640, 480) imgc, imgslice = view([ HSV(0, 0, 0) for y=1:imgsize[2], x=1:imgsize[1] ]) mandelbrot(imgc, iterations) - -#If we are not in a REPL -if (!isinteractive()) - - # Create a condition object - cv = Condition() - - # Get the main window (A Tk toplevel object) - win = toplevel(imgc) - - # Notify the condition object when the window closes - bind(win, "", e->notify(cv)) - - # Wait for the notification before proceeding ... - wait(cv) -end -- cgit v1.2.3-54-g00ecf