-
Notifications
You must be signed in to change notification settings - Fork 44
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
Use pyface undo instead of apptools.undo #507
Conversation
Codecov Report
@@ Coverage Diff @@
## master #507 +/- ##
=======================================
Coverage 30.62% 30.63%
=======================================
Files 206 208 +2
Lines 17830 17832 +2
Branches 2454 2454
=======================================
+ Hits 5461 5463 +2
Misses 12036 12036
Partials 333 333
Continue to review full report at Codecov.
|
Concerning the drag and drop handling for Qt... I think some spelunking will be required to see how hard it would be to get rid of apptools (who's using it, what are they doing with the |
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.
A question and a comment. This should be good to go once the question is resolved.
…ow what is being tested
…, also delete the apptools examples directory
There was a slight misunderstanding. You should delete everything in |
so the warning should be generated from the |
|
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.
One comment, otherwise LGTM
fixes #503
As of Pyface 7.2.0, the undo/redo functionality that used to be specific to
apptools
is now available through pyface. With the upcoming release of apptools, it will be deprecated.This PR simply replaces all uses of
apptools.undo
withpyface.undo
and updates file names / documentation accordingly.Note that after this PR, the only use of
apptools
in the code base will be here:enable/enable/qt4/base_window.py
Lines 499 to 505 in f83869e
Maybe this code could use
pathlib
instead as mentioned enthought/apptools#143?apptools
is still listed as a dependency inci/edmtool.py
but maybe that can be removed?Also, note: this PR will cause merge conflicts with #494, but they should be simple enough to resolve (just replace apptools with pyface in the example code that mentions it on 494)