MCPcopy Index your code
hub / github.com/rawpython/remi / onchange

Method onchange

remi/gui.py:2294–2305  ·  view source on GitHub ↗

Called when the user changes the TextInput content. With single_line=True it fires in case of focus lost and Enter key pressed. With single_line=False it fires at each key released. Args: new_value (str): the new string content of the TextInput.

(self, new_value)

Source from the content-addressed store, hash-verified

2292 @decorate_set_on_listener("(self, emitter, new_value)")
2293 @decorate_event
2294 def onchange(self, new_value):
2295 """Called when the user changes the TextInput content.
2296 With single_line=True it fires in case of focus lost and Enter key pressed.
2297 With single_line=False it fires at each key released.
2298
2299 Args:
2300 new_value (str): the new string content of the TextInput.
2301 """
2302 self.disable_update()
2303 self.set_value(new_value)
2304 self.enable_update()
2305 return (new_value, )
2306
2307 @decorate_set_on_listener("(self, emitter, new_value, keycode)")
2308 @decorate_event_js("""var elem=document.getElementById('%(emitter_identifier)s');

Callers

nothing calls this directly

Calls 3

set_valueMethod · 0.95
disable_updateMethod · 0.80
enable_updateMethod · 0.80

Tested by

no test coverage detected