py-menu-tui
Advanced tools
+1
-1
| Metadata-Version: 2.4 | ||
| Name: py_menu_tui | ||
| Version: 0.2.9 | ||
| Version: 0.2.10 | ||
| Summary: This project implements a keyboard-controlled text user interface (TUI) for the terminal that allows users to navigate menus and nested subsections using simple key inputs (w, s, Enter, Esc). It provides a lightweight framework for building interactive CLI applications with features like menu navigation, subsections, progress bars, and confirmation prompts. | ||
@@ -5,0 +5,0 @@ License-Expression: MIT |
@@ -102,2 +102,10 @@ import os | ||
| try: | ||
| if len(_list)<len(self.list): | ||
| for i in range(len(self.list)-len(_list)): | ||
| _list.append("") | ||
| if self.search_subsection(title): | ||
| sec=self.search_subsection(title) | ||
| for i in range(len(sec.list)-len(_list)): | ||
| _list.append("") | ||
| os.system("cls") | ||
@@ -217,2 +225,3 @@ for i in self.path: | ||
| def progressbar(progress: int, width: int = 30): | ||
@@ -234,4 +243,11 @@ filled = int(width * progress / 100) | ||
| return False | ||
| def test3(): | ||
| pass | ||
| def test2(): | ||
| ui.add_sub_section(["test3"], [test3], "audio","settings") | ||
| def test1(): | ||
| ui.add_sub_section(["test2"],[test2],"settings") | ||
| ui=UserInterface() | ||
| ui.setup(["test1"],[test1]) | ||
| ui.begin() | ||
+1
-1
@@ -5,3 +5,3 @@ [build-system] | ||
| [project] | ||
| version="0.2.9" | ||
| version="0.2.10" | ||
| name="py_menu_tui" | ||
@@ -8,0 +8,0 @@ dependencies=[] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
12280
5.11%180
9.76%