From ce0d8c07766379ba3d65854ef84a6b8bd2d21757 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 13 May 2020 18:01:18 -0400 Subject: [PATCH] FIX: don't try to use non-standard functions on standard status bars closes #17085 --- lib/matplotlib/backends/backend_wx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index d74646defd19..46374ebdcb13 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -1501,7 +1501,7 @@ def statbar(self): def set_message(self, s): status_bar = self.GetTopLevelParent().GetStatusBar() - if status_bar is not None: + if status_bar is not None and hasattr(status_bar, 'set_function'): status_bar.set_function(s) def set_history_buttons(self):