Programmatically close a window made with `racket/gui` (to stop a `timer%`)
问题 Racket programs that use racket/gui run until all of the windows are closed. This makes it easy to write a program like: #lang racket/gui (define window (new frame% [label "Hello"] [width 100] [height 100])) (send window show #t) And now the program will continue to run until the window is closed. However, it sometimes makes sense to close a window programmatically, for example, if I want a countdown that will close the window and finish after the countdown is done. As far as I can tell