MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / toggle_toolitem

Method toggle_toolitem

lib/matplotlib/backends/backend_gtk3.py:456–462  ·  view source on GitHub ↗
(self, name, toggled)

Source from the content-addressed store, hash-verified

454 self.trigger_tool(name)
455
456 def toggle_toolitem(self, name, toggled):
457 if name not in self._toolitems:
458 return
459 for toolitem, signal in self._toolitems[name]:
460 toolitem.handler_block(signal)
461 toolitem.set_active(toggled)
462 toolitem.handler_unblock(signal)
463
464 def remove_toolitem(self, name):
465 for toolitem, _signal in self._toolitems.pop(name, []):

Callers

nothing calls this directly

Calls 1

set_activeMethod · 0.45

Tested by

no test coverage detected