Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventDispatcher: Move __self__ from widget to EventDispatcher and fix tests. #6448

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

matham
Copy link
Member

@matham matham commented Aug 1, 2019

Given that proxy_ref is now in EventDispatcher, it's helpful to also move __self__ to it so we can get the actual object.

Also adds memory leaks tests making sure the app is gc'd after each test is done, and fixes the often failing network test to not fail due to lack of internet.

@matham matham merged commit 68dade8 into kivy:master Aug 1, 2019
@matham matham deleted the app-test branch August 1, 2019 19:41
@jabdoa2
Copy link
Contributor

jabdoa2 commented Oct 13, 2019

This change should probably be listed in #5560 as it breaks our current code around adding a ScreenManager to any other widget.

@matham matham added the Notes: API-break API was broken with backwards incompatibality label Oct 13, 2019
@matham
Copy link
Member Author

matham commented Oct 13, 2019

But how is it an API break? Moving to a superclass should not be an API break?

@jabdoa2
Copy link
Contributor

jabdoa2 commented Oct 13, 2019

I will investigate this some more. It came up in git bisect. Maybe it is coincidence.

@matham matham added this to the 2.0.0 milestone Oct 28, 2020
@matham matham changed the title Move __self__ from widget to EventDispatcher and fix tests. EventDispatcher: Move __self__ from widget to EventDispatcher and fix tests. Dec 8, 2020
@matham matham added the Component: core-widget properties, eventdispatcher, widget.py, animation label Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: core-widget properties, eventdispatcher, widget.py, animation Notes: API-break API was broken with backwards incompatibality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants