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

Method _add_button

lib/matplotlib/backends/backend_gtk4.py:499–507  ·  view source on GitHub ↗
(self, button, group, position)

Source from the content-addressed store, hash-verified

497 return children[position]
498
499 def _add_button(self, button, group, position):
500 if group not in self._groups:
501 if self._groups:
502 self._add_separator()
503 group_box = Gtk.Box()
504 self._tool_box.append(group_box)
505 self._groups[group] = group_box
506 self._groups[group].insert_child_after(
507 button, self._find_child_at_position(group, position))
508
509 def _call_tool(self, btn, name):
510 self.trigger_tool(name)

Callers 1

add_toolitemMethod · 0.95

Calls 2

_add_separatorMethod · 0.95

Tested by

no test coverage detected