Skip to content

A python module to create lists that are interactable using arrow keys

License

Notifications You must be signed in to change notification settings

reynirf/Simple-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple List

This module makes it easy to make lists that are interactable using the keyboard (arrow keys).

Picture 1

There might still be some bugs when using a Windows OS. Open an issue if you find one! :)

Setup:

$ pip3 install ... (coming soon)

Usage:

import SimpleList
_list = SimpleList(True) # True if you wanna clear window on init

Take a look at general_example or menu_example for working and simple examples.

Methods:

TODO: write a documentation for all available methods


  • SimpleList.choose_one(question, alternatives, key, get_index, go_back) returns a dictionary
    • question - string (required)
    • alternatives - list (required)
    • key - string (optional) | default: answer
    • get_index - boolean (optional) | default: False
    • go_back - string (optional) | default: False
  • SimpleList.single_list(alternative) returns nothing
    • alternative - string (required)
  • SimpleList.clear_window() returns nothing
  • SimpleList.delete_last_lines(n) returns nothing
    • n - int (optional) | default: 1
  • SimpleList.color.return_colored(text, color) returns a string (use color.print_colored() to print instead of returning)
    • text - string (required)
    • color - string (required) | examples: 'red', 'blue', 'cyan', 'bold', 'underline' or 'yellow'

About

A python module to create lists that are interactable using arrow keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages