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

Method toggle_toolitem

lib/matplotlib/backends/backend_gtk4.py:512–518  ·  view source on GitHub ↗
(self, name, toggled)

Source from the content-addressed store, hash-verified

510 self.trigger_tool(name)
511
512 def toggle_toolitem(self, name, toggled):
513 if name not in self._toolitems:
514 return
515 for toolitem, signal in self._toolitems[name]:
516 toolitem.handler_block(signal)
517 toolitem.set_active(toggled)
518 toolitem.handler_unblock(signal)
519
520 def remove_toolitem(self, name):
521 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