Remove 'parent' argument from wx StatusBarManager#1192
Remove 'parent' argument from wx StatusBarManager#1192corranwebster merged 2 commits intoenthought:mainfrom
Conversation
Remove the 'parent' argument from 'StatusBarManager.destroy' in the WX implementation. The argument is unused, and doesn't match the interface definition.
corranwebster
left a comment
There was a problem hiding this comment.
Once again, thanks for the PR. This probably needs a corresponding change to the call here:
pyface/pyface/ui/wx/application_window.py
Line 225 in acccc5e
|
Good catch, I've adapted the call site now. I wonder if we should add some kind of test? Originally, I stumbled upon this because our code triggered the following exception: |
There are tests for the create/destroy aspects of the pyface/pyface/tests/test_application_window.py Lines 222 to 252 in 9aeb3bd Unfortunately those tests need the So the long and short of it is, no, no need to write a test, and this looks good to go. |
|
Thanks for the review, and the context on testing! |
Another small fix:
Remove the 'parent' argument from 'StatusBarManager.destroy' in the wx backend. The argument is unused, and doesn't match the interface definition.
If you prefer keeping the argument (to not break applications which may pass it explicitly?), I'd propose adding a default
=None, and emitting a deprecation warning.