Simulate input() - uses browser.widgets

This is another replacement for the built-in function input(), using the module dialog included in a package of the Brython standard library, browser.widgets. This module exposes classes to manage dialog boxes:
  • EntryDialog to enter a value; when user clicks on "Ok" or hits the Enter key, an event "entry" is triggered on the EntryDialog instance
  • InfoDialog to display a message