From bea2808c6c933bad3f1a19953d68ff97d7ad8684 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 19 Jun 2020 11:50:05 +0200 Subject: [PATCH] Fix tooltip for wx toolbar. longHelp is displayed in the now removed statusbar (i.e. now has no effect); shortHelp is the tooltip text. --- 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 31773c0aa978..f1887a886576 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -1120,7 +1120,7 @@ def __init__(self, canvas): -1, bitmap=self._icon(f"{image_file}.png"), bmpDisabled=wx.NullBitmap, - label=text, shortHelp=text, longHelp=tooltip_text, + label=text, shortHelp=tooltip_text, kind=(wx.ITEM_CHECK if text in ["Pan", "Zoom"] else wx.ITEM_NORMAL)) .Id)