lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

Callback/event on closing the chart.

Open germangar opened this issue 8 months ago • 2 comments

Question

Hey, Is there a callback for when the window is closed? I don't find it anywhere in the documentation.

Code example


germangar avatar Apr 20 '25 08:04 germangar

Hey, if you are talking about closing the entire app, you could use some regular stuff like atexit.

emma-uw avatar Apr 20 '25 15:04 emma-uw

I have a script that is fecthing candles from a server. If I close the chart window the fetching script keeps running. I'd like to release my handles in case I want to open it again with a console command. Can I do that with atexit?

germangar avatar Apr 20 '25 16:04 germangar