When the text changes, call this *func* with event. A connection id is returned which can be used to disconnect.
(self, func)
| 1733 | self.ax.get_figure(root=True).canvas.draw() |
| 1734 | |
| 1735 | def on_text_change(self, func): |
| 1736 | """ |
| 1737 | When the text changes, call this *func* with event. |
| 1738 | |
| 1739 | A connection id is returned which can be used to disconnect. |
| 1740 | """ |
| 1741 | return self._observers.connect('change', lambda text: func(text)) |
| 1742 | |
| 1743 | def on_submit(self, func): |
| 1744 | """ |