
I’m completely missing it in the docs… how can I set up an on-close callback for a frame%? Simply put, I have a timer I want to stop when the window is closed. :wink:

@massung A frame%
extends top-level-window<%>
. And that has an on-close
.

You will need to make an my-frame%
class that adjust the meaning of on-close
. The docs recommend using agument
to do that.

I saw that, but not how to use it. It’s not an init-param

Orseau has an example here: https://stackoverflow.com/questions/18684412/how-to-handle-gui-exit-in-racket

Ah, I grok now. Got it and TY

I am not sure why it isn’t a simple callback.

like most things I’m sure: posterity and backwards compat :wink:

Looks like a core design decision. The GUI system sends events to methods that the user can augment. It works for mixings.

just updated racket to 8.2 and it’s extremely slow, raco with no args takes 40 seconds to show the usage message and racket shows Welcome to Racket v8.2 [cs].
immediately and then takes [over two minutes, will edit when it finishes] to show the prompt. I have no issues with drracket using 8.2. this installation is on macos through brew

Try raco setup

It sounds like your Racket is somehow running from source rather than compiled file. As @soegaard2 said, you should try raco setup
to recompile everything. This should make things fast again.

Trying that now, ty

I usually clone the repos myself over SSH, with origin
and upstream
the way I want them, then point raco pkg update --clone
at my checkout (but I always forget whether to pass the repository root or the path to the package as the second argument)