Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix leaky QT widgets#108

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ruaridhg merged 6 commits intomatplotlib:mainfromdstansby:leaks
May 18, 2023
Merged

Fix leaky QT widgets#108

ruaridhg merged 6 commits intomatplotlib:mainfromdstansby:leaks
May 18, 2023

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedMay 15, 2023
edited
Loading

This PR enables a check for leaky QT widgets. This is done inconftest.py by setting the "NAPARI_STRICT_QT" environment variable during the tests.

To make the the widgets watertight I had to do two things:

  • Consistently use theparent keyword argument to make sure all widgets have a parent widget. This is important, because parent widgets will pro-actively close any of their children when they themselves are closed.
  • Re-write the features scatter widget to not usemagicgui. Previously there was a circular reference that prevented the widget and one of the menusmagicgui created from being cleaned up. I think the new code is a bit more readable if anything, and makes it clear where callbacks are between the combo boxes and the graph drawing. To test this runexamples/features_scatter.py and have a play around with the widget.

Fixes#109

This was referencedMay 15, 2023
@dstansbydstansbyforce-pushed theleaks branch 2 times, most recently from1123512 to92186d1CompareMay 15, 2023 09:16
@dstansby
Copy link
MemberAuthor

I've managed to fix them all, apart fromFeaturesScatterWidget. Next step is to work out what's special about that widget that's causing it to fail.

@dstansbydstansby mentioned this pull requestMay 15, 2023
@dstansbydstansbyforce-pushed theleaks branch 4 times, most recently from215e185 to221e479CompareMay 17, 2023 12:47
@dstansbydstansbyforce-pushed theleaks branch 3 times, most recently fromfda8647 to1a7324dCompareMay 17, 2023 14:42
@dstansbydstansby marked this pull request as ready for reviewMay 17, 2023 15:27
@dstansbydstansby changed the titleCheck for leaky QT widgetsFix leaky QT widgetsMay 17, 2023
@dstansbydstansby requested review fromruaridhg andsamcunliffe and removed request forruaridhgMay 17, 2023 15:34
Copy link
Collaborator

@ruaridhgruaridhg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@ruaridhgruaridhg added this pull request to the merge queueMay 18, 2023
Merged via the queue intomatplotlib:main with commitfe24d4fMay 18, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ruaridhgruaridhgruaridhg approved these changes

@samcunliffesamcunliffeAwaiting requested review from samcunliffe

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fix leaking QT widgets
2 participants
@dstansby@ruaridhg

[8]ページ先頭

©2009-2025 Movatter.jp