-
Notifications
You must be signed in to change notification settings - Fork 55
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
Convert on_trait_change decorators to observe decorators #864
Merged
Merged
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
28f954b
update otc decorators to be observe decorators in guiapplication.py a…
aaronayres35 8d69ddc
use observe decorator in palce of otc decorator in action/action_item.py
aaronayres35 0fdd93d
same for tasks/task_window.py
aaronayres35 c086a34
fix update to task window (needed a : not a .)
aaronayres35 9089d33
remove specification of identity comparison_mode as it is no longer n…
aaronayres35 cd3f943
decorator updates for tasks/action/dock_pane_toggle_group.py
aaronayres35 32d27b6
update decorators in tasks/action/task_toggle_group.py (seems unteste…
aaronayres35 479fc21
same for task_window_toggle_group.py (also seems unttested? be careful)
aaronayres35 a43f506
replace decorator in test_gui_application.py
aaronayres35 2f8f535
replace decorators in application_window.py
aaronayres35 60ed83c
update decorrators for ui/qt4/tasks/advanced_editor_area_pane.py (not…
aaronayres35 2bf7b38
update decorators for ui/qt4/tasks/dock_pane.py (note handlers were c…
aaronayres35 84a401e
update decorators for both toolkits editor_area_pane.py files
aaronayres35 00fda10
same for ui/qt4/tasks/split_editor_area_pane.py
aaronayres35 5ac9cef
more of the same this time for wx dock_pane.py
aaronayres35 56ecaf3
update decorators in qt workbench_window_layout.py and update corresp…
aaronayres35 3c7a809
update wx application_window.py
aaronayres35 7f0b8ec
update workbench_window.py
aaronayres35 664b17a
update decorators for workbench/action/perspective_menu_manager.py
aaronayres35 590d911
update decorators for workbench/action/set_active_perspective_action.py
aaronayres35 e6d91c4
update for workbench/action/user_perspective_action.py
aaronayres35 df03601
update for workbench/action/view_menu_manager.py
aaronayres35 604368e
update for workbench/debug/debug_view.py
aaronayres35 7b967f0
update to use observe decorators in examples
aaronayres35 a8e1066
if event isn't actually needed, define the argument as _=None instead
aaronayres35 ba0722a
Apply suggestions from code review
aaronayres35 b42fd79
Merge branch 'convert-otc-decorators-to-observe' of https://github.co…
aaronayres35 b9cd5c2
more suggested changes for code readability
aaronayres35 8f9c2b3
Apply suggestions from code review
aaronayres35 729be50
Apply suggestions from code review
aaronayres35 e7c6ea4
pass event=None where needed
aaronayres35 083a265
missed a few
aaronayres35 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a decent number of cases like this, where previously we used
.
not:
but then only do something when the second trait is the one changed?With these types of changes the tests were all still passing and I believe behavior is preserved (code is cleaner IMO as well), but if we want to play it safe or if a reviewer sees why these might not be equivalent, I am happy to adjust