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

Skip to content

Commit bea2808

Browse files
committed
Fix tooltip for wx toolbar.
longHelp is displayed in the now removed statusbar (i.e. now has no effect); shortHelp is the tooltip text.
1 parent faffaa1 commit bea2808

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ def __init__(self, canvas):
11201120
-1,
11211121
bitmap=self._icon(f"{image_file}.png"),
11221122
bmpDisabled=wx.NullBitmap,
1123-
label=text, shortHelp=text, longHelp=tooltip_text,
1123+
label=text, shortHelp=tooltip_text,
11241124
kind=(wx.ITEM_CHECK if text in ["Pan", "Zoom"]
11251125
else wx.ITEM_NORMAL))
11261126
.Id)

0 commit comments

Comments
 (0)