MCPcopy Index your code
hub / github.com/bpython/bpython / _on_prompt_enter

Method _on_prompt_enter

bpython/urwid.py:250–254  ·  view source on GitHub ↗

Reset the statusbar and pass the input from the prompt to the caller via 'prompt_result'.

(self, edit, new_text)

Source from the content-addressed store, hash-verified

248 self.settext("")
249
250 def _on_prompt_enter(self, edit, new_text):
251 """Reset the statusbar and pass the input from the prompt to the caller
252 via 'prompt_result'."""
253 self.settext(self.s)
254 urwid.emit_signal(self, "prompt_result", new_text)
255
256
257urwid.register_signal(Statusbar, "prompt_result")

Callers

nothing calls this directly

Calls 1

settextMethod · 0.95

Tested by

no test coverage detected