Skip to content

rhinstaller/python-simpleline

Folders and files

NameName
Last commit message
Last commit date
Sep 4, 2023
Aug 20, 2021
Oct 7, 2021
Feb 28, 2023
Oct 7, 2022
Oct 7, 2022
Jul 27, 2020
Dec 19, 2022
Oct 7, 2022
Jun 8, 2020
Aug 20, 2021
Oct 7, 2022
Jul 14, 2020
Jan 2, 2023
Oct 11, 2021

Repository files navigation

Copr build status Translation status

Python Simpleline

This is a text UI framework originally which was a part of the Anaconda installer project.

This UI is simple and easy to use. It is designed to be used with line-based machines and tools (e.g. serial console) so that every new line is appended to the bottom of the screen. Printed lines are never rewritten!

How to

Link to the documentation.

Another way to learn how to use this library is to view the examples directory. Examples can be run without installing Simpleline to the system. You can test them by running the script run_example.sh.

  1. cd examples
  2. ./run_example.sh example_folder_name

For example: ./run_example.sh basic

Dependencies

This is a Python3-only project. This code should not be difficult to migrate to Python2. However, there is no need from the community, so it is only compatible with Python3 at the moment. No special libraries are required to use this library. If you want to use glib event loop instead of the original one you need to install glib and Python3 gobject introspection.

If you want to run tests (make ci), you need to install Pocketlint and glib with gobject introspection for Python3.

Note

Thanks to Martin Sivák for the original Anaconda project. It was really nice starting place for the new Simpleline's form.