<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi,
<div><br /></div>
<div>I’m trying to add elements to the matplotlib toolbar *using the Qt5 backend*. I tried running this example code:</div>
<div><br /></div>
<div><a href="https://matplotlib.org/examples/user_interfaces/toolmanager.html">https://matplotlib.org/examples/user_interfaces/toolmanager.html</a><br /></div>
<div><br /></div>
<div>But unfortunately it fails when using Qt5 with the error </div>
<div><br /></div>
<div>
<div>    fig.canvas.manager.toolmanager.add_tool('List', ListTools)</div>
<div>AttributeError: 'FigureManagerQT' object has no attribute ‘toolmanager'</div>
</div>
<div><br /></div>
<div>Is toolmanager only available for GTK? Is there an equivalent way of achieving what the script is doing in other backends?</div>
<div><br /></div>
<div>Thanks,</div>
<div><br /></div>
<div>Juan.</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
<div></div>
</div>
</body>
</html>