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

Method set_val

lib/matplotlib/widgets.py:1659–1667  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

1657 self._observers.process('submit', self.text)
1658
1659 def set_val(self, val):
1660 newval = str(val)
1661 if self.text == newval:
1662 return
1663 self.text_disp.set_text(newval)
1664 self._rendercursor()
1665 if self.eventson:
1666 self._observers.process('change', self.text)
1667 self._observers.process('submit', self.text)
1668
1669 def begin_typing(self):
1670 self.capturekeystrokes = True

Callers 1

test_TextBoxFunction · 0.95

Calls 3

_rendercursorMethod · 0.95
processMethod · 0.80
set_textMethod · 0.45

Tested by 1

test_TextBoxFunction · 0.76