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

KV lang: Make it easy to copy Builder and Factory and make them all contexts. #6442

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

matham
Copy link
Member

@matham matham commented Jul 27, 2019

This makes Factory and KNSpace a context object, like Clock and Builder so that you can switch them out during testing, so that stuff doesn't leak between tests.

Specifically, it adds create_from methods for the objects so that we can copy them (e.g. for Builder we load style.kv into the default, so we need to be able to copy the object with its current state).

@matham matham merged commit ca3cbce into kivy:master Jul 31, 2019
@matham matham deleted the copy_obj branch July 31, 2019 08:45
@matham matham added this to the 2.0.0 milestone Oct 28, 2020
@matham matham changed the title Make it easy to copy Builder and Factory and make them all contexts. Core: Make it easy to copy Builder and Factory and make them all contexts. Dec 8, 2020
@matham matham added the Component: KV-lang kivy/lang, factory label Dec 8, 2020
@matham matham changed the title Core: Make it easy to copy Builder and Factory and make them all contexts. KV lang: Make it easy to copy Builder and Factory and make them all contexts. Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: KV-lang kivy/lang, factory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant