SelectPy ( selectpy )
Selectpy is a simple python module to integrate a fully customizable select menu in your python projects.
How To Use
Installing The Module
pip install selectpy
Importing The Module in The Project
from selectpy import select
Adding The Select Menu And Getting The Result
ans = select(opts=["Option 1", "Option 2"],
msg="Choose an Option:",
c=">",
cursor_color="#ff0000",
selected_color="#ff0000",
unselected_color="#ffffff")
print(ans)
Output
Choose an Option:
> Option 1
Option 2
Option 1
Navigation For The Selection Menu:
-
Up Arrow
-
Down Arrow
-
Enter
-
Escape
-
Ctrl + C
Thats it!