Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 479ad1a

Browse files
authored
Merge pull request #17407 from tacaswell/fix_wx_statusbar
FIX: don't try to use non-standard functions on standard status bars
2 parents 33b5601 + ce0d8c0 commit 479ad1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ def statbar(self):
15011501

15021502
def set_message(self, s):
15031503
status_bar = self.GetTopLevelParent().GetStatusBar()
1504-
if status_bar is not None:
1504+
if status_bar is not None and hasattr(status_bar, 'set_function'):
15051505
status_bar.set_function(s)
15061506

15071507
def set_history_buttons(self):

0 commit comments

Comments
 (0)