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

Method toggle_toolitem

lib/matplotlib/backends/_backend_tk.py:1076–1083  ·  view source on GitHub ↗
(self, name, toggled)

Source from the content-addressed store, hash-verified

1074 self.trigger_tool(name)
1075
1076 def toggle_toolitem(self, name, toggled):
1077 if name not in self._toolitems:
1078 return
1079 for toolitem in self._toolitems[name]:
1080 if toggled:
1081 toolitem.select()
1082 else:
1083 toolitem.deselect()
1084
1085 def remove_toolitem(self, name):
1086 for toolitem in self._toolitems.pop(name, []):

Callers

nothing calls this directly

Calls 1

selectMethod · 0.80

Tested by

no test coverage detected