massung
2021-10-12 19:19:57

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:


soegaard2
2021-10-12 19:23:08

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


soegaard2
2021-10-12 19:24:51

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


massung
2021-10-12 19:24:53

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


soegaard2
2021-10-12 19:25:55

massung
2021-10-12 19:27:12

Ah, I grok now. Got it and TY


soegaard2
2021-10-12 19:27:47

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


massung
2021-10-12 19:28:08

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


shu--hung
2021-10-12 19:45:36

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


a11ce
2021-10-12 20:12:24

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


soegaard2
2021-10-12 20:12:41

Try raco setup


sorawee
2021-10-12 20:14:14

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.


a11ce
2021-10-12 20:16:11

Trying that now, ty


philip.mcgrath
2021-10-13 01:38:46

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)