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

Replace use of depends_on in Traits Properties with observe #1520

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

rahulporuri
Copy link
Contributor

This PR replaces the use of depends_on metadata on Traits Properties with the use of observe metadata. Contributes towards #1052

This commit replaces the use of depends_on metadata on properties with
the use of observe metadata.
@rahulporuri rahulporuri added this to In progress in Enthought OSS Q1 2021 Feb 12, 2021
	modified:   traitsui/ui.py
@aaronayres35 aaronayres35 self-requested a review February 18, 2021 13:53
traitsui/ui.py Outdated Show resolved Hide resolved
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, but a couple suggested changes. Most notably in traitsui/ui.py for the use of trait on the extended trait name "view._key_bindings"

I apologize for the non-unified review. I inadvertently clicked "add single comment", and also "comment" rather than "request changes"

examples/tutorials/traitsui_4.0/items.py Outdated Show resolved Hide resolved
@aaronayres35 aaronayres35 mentioned this pull request Apr 5, 2021
28 tasks
	modified:   examples/tutorials/traitsui_4.0/items.py
	modified:   traitsui/ui.py
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

LGTM

@rahulporuri rahulporuri merged commit 434ae26 into master Apr 20, 2021
Enthought OSS Q1 2021 automation moved this from In progress to Done Apr 20, 2021
@rahulporuri rahulporuri deleted the dev/replace-depends-on-with-observe branch April 20, 2021 13:16
@rahulporuri rahulporuri moved this from Done to Sprint 4 : March 1 - March 12 2021 in Enthought OSS Q1 2021 Apr 20, 2021
@rahulporuri rahulporuri moved this from Sprint 4 : March 1 - March 12 2021 to Sprint 3 : Feb 8 2021 - Feb 26 2021 in Enthought OSS Q1 2021 Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Enthought OSS Q1 2021
Sprint 3 : Feb 8 2021 - Feb 26 2021
Development

Successfully merging this pull request may close these issues.

None yet

2 participants