Hi,
I have written a small Python package (https://pypi.org/project/lineui/) to provide an API to a one-line user interface (like that in a calculator) for Python learners.It provides the following features:
  • output in the line (left, right or middle aligned).
  • output in the console (the lower box), mainly for debugging.
  • keyboard input.
  • timer input (every second or every 0.05 seconds).
  • schedule a call to a function a certain seconds later.
  • make a beep.With these a Python learner can make apps like: digital clock, the classic digit invaders game, slapjack, etc.

--
Kent Tong
IT author and consultant, child education coach