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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy