-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a widget.on_close() method #2670
Comments
ahh... you what. I totally missed the part about this being just your widget (and not the full viewer). The need for a clear API is no different... but the workaround is a bit different (let me test some stuff) |
+1, this would be super useful to me as well! |
My bad, I just blindly copied and pasted. |
Hi @adamltyson, what do you exactly mean by closing a widget in napari 馃檭 ?
|
I originally meant clicking the |
This should be closed by #3184 |
馃殌 Feature
Support a method that is run when the widget is closed in napari.
Motivation
I want to mess with the viewer (hide buttons etc.), but reset everything if my plugin is closed.
Alternatives
Using viewer.window._qt_window.destroyed.connect(my_callback)
The text was updated successfully, but these errors were encountered: