Disable zoom on toolbar

Hi,

I want to be able to disable the zoom tool (when it has been selected) when I press another button on the toolbar, and disable the same button when I click the zoom tool… anyone know how to do this??

Thanks,
Soren

checking the toolbar mode might help you.

tb = get_current_fig_manager().toolbar
    
if tb=='' : then you know that the toolbar is being used.

this may not answer your question totally - but might help.

k

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Disable-zoom-on-toolbar-tp14159p43151.html
Sent from the matplotlib - users mailing list archive at Nabble.com.