[plt-scheme] Embarrasingly basic GUI question
On Aug 11, Andrew Reilly wrote:
> Hi Eli,
>
> Thanks for answering so promptly!
>
> On Tue, Aug 11, 2009 at 12:39:10AM -0400, Eli Barzilay wrote:
> > Looks like what you're missing is a (yield 'wait).
>
> Yes, that looks like the main part of the puzzle.
>
> Now I need to figure out how to attach a callback to (or otherwise
> notice) the window being closed. The yield isn't exiting when my
> window closes because I have a timer active.
Probably something like
(define/augment (on-close)
... kill your timer here ...)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!