From 8bded3924b3b34bd2d83e3525d2e4fb662f34f5e Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Tue, 10 Jan 2023 17:13:49 +0100 Subject: [PATCH 1/2] Remove 'parent' argument from wx StatusBarManager Remove the 'parent' argument from 'StatusBarManager.destroy' in the WX implementation. The argument is unused, and doesn't match the interface definition. --- pyface/ui/wx/action/status_bar_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyface/ui/wx/action/status_bar_manager.py b/pyface/ui/wx/action/status_bar_manager.py index a2e514835..9bb69d540 100644 --- a/pyface/ui/wx/action/status_bar_manager.py +++ b/pyface/ui/wx/action/status_bar_manager.py @@ -50,7 +50,7 @@ def create_status_bar(self, parent): return self.status_bar - def destroy(self, parent): + def destroy(self): """ Removes a status bar. """ if self.status_bar is not None: From 4b7100ea05d66b2e3e8bb05d17a6d2bb8c9a8bf3 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Wed, 11 Jan 2023 09:32:43 +0100 Subject: [PATCH 2/2] Adapt call to destroy() in ApplicationWindow --- pyface/ui/wx/application_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyface/ui/wx/application_window.py b/pyface/ui/wx/application_window.py index cfc54c3c7..4db3f68a9 100644 --- a/pyface/ui/wx/application_window.py +++ b/pyface/ui/wx/application_window.py @@ -222,7 +222,7 @@ def _status_bar_manager_changed(self, old, new): if self.control is not None: if old is not None: self.control.SetStatusBar(None) - old.destroy(self.control) + old.destroy() self._create_status_bar(self.control) @observe("tool_bar_manager, tool_bar_managers.items")