Skip to content

Commit c737dcd

Browse files
authored
Remove 'parent' argument from wx StatusBarManager (#1192)
Remove the 'parent' argument from 'StatusBarManager.destroy' in the wx backend. The argument is unused, and doesn't match the interface definition.
1 parent 9aeb3bd commit c737dcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyface/ui/wx/action/status_bar_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def create_status_bar(self, parent):
5050

5151
return self.status_bar
5252

53-
def destroy(self, parent):
53+
def destroy(self):
5454
""" Removes a status bar. """
5555

5656
if self.status_bar is not None:

pyface/ui/wx/application_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _status_bar_manager_changed(self, old, new):
222222
if self.control is not None:
223223
if old is not None:
224224
self.control.SetStatusBar(None)
225-
old.destroy(self.control)
225+
old.destroy()
226226
self._create_status_bar(self.control)
227227

228228
@observe("tool_bar_manager, tool_bar_managers.items")

0 commit comments

Comments
 (0)