Reset the statusbar and pass the input from the prompt to the caller via 'prompt_result'.
(self, edit, new_text)
| 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 | |
| 257 | urwid.register_signal(Statusbar, "prompt_result") |