tui-utilities 1.0.26__py3-none-any.whl → 1.0.27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tui-utilities might be problematic. Click here for more details.
- tui_utilities/structure.py +7 -7
- {tui_utilities-1.0.26.dist-info → tui_utilities-1.0.27.dist-info}/METADATA +1 -1
- {tui_utilities-1.0.26.dist-info → tui_utilities-1.0.27.dist-info}/RECORD +5 -5
- {tui_utilities-1.0.26.dist-info → tui_utilities-1.0.27.dist-info}/WHEEL +0 -0
- {tui_utilities-1.0.26.dist-info → tui_utilities-1.0.27.dist-info}/top_level.txt +0 -0
tui_utilities/structure.py
CHANGED
|
@@ -17,7 +17,7 @@ def _choose_option(
|
|
|
17
17
|
return selection
|
|
18
18
|
|
|
19
19
|
def menu(
|
|
20
|
-
|
|
20
|
+
options,
|
|
21
21
|
title,
|
|
22
22
|
title_color = "#ffffff",
|
|
23
23
|
title_bold = True,
|
|
@@ -69,16 +69,16 @@ def menu(
|
|
|
69
69
|
bottom_padding = separator_bottom_padding,
|
|
70
70
|
left_padding = separator_left_padding
|
|
71
71
|
)
|
|
72
|
-
|
|
72
|
+
options_dictionary = {}
|
|
73
73
|
key = 1
|
|
74
|
-
for option in
|
|
74
|
+
for option in options:
|
|
75
75
|
match option:
|
|
76
|
-
case "Atrás":
|
|
77
|
-
case "Salir":
|
|
76
|
+
case "Atrás": options_dictionary["A"] = option
|
|
77
|
+
case "Salir": options_dictionary["S"] = option
|
|
78
78
|
case _:
|
|
79
|
-
|
|
79
|
+
options_dictionary[str(key)] = option
|
|
80
80
|
key += 1
|
|
81
|
-
return _choose_option(
|
|
81
|
+
return _choose_option(options_dictionary, message, selection_text, error)
|
|
82
82
|
|
|
83
83
|
def confirm_exit(
|
|
84
84
|
message = "¿Está seguro de querer salir?",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
tui_utilities/__init__.py,sha256=8WIoKhRFLM4Bcdd7W3grDoBgfSR0HFWxTsP4ON6Il-E,775
|
|
2
2
|
tui_utilities/console.py,sha256=ft-LTJAoIWCcyjOwlkmPg8OjCzuhNQ8N0wPJHkQHZQk,5992
|
|
3
3
|
tui_utilities/format.py,sha256=6Ou6aeRku1Fb5Nf0tKmCgh8CIsh3sRJZogog-f5_igc,657
|
|
4
|
-
tui_utilities/structure.py,sha256=
|
|
4
|
+
tui_utilities/structure.py,sha256=ZT75tblz52nI9_2FdFCUAw1AITLjMP7pdx8hErRgWjs,5286
|
|
5
5
|
tui_utilities/validation.py,sha256=xybjpleTg0l7lRT0D3QuD62_RwV-r03ZTwPqO9us9Tg,6511
|
|
6
6
|
tui_utilities/_tlds/tlds.txt,sha256=ieHVMCtLqEoh8aiMZIZPepNdOjR3CGlO2QgH5LKCRuI,10916
|
|
7
|
-
tui_utilities-1.0.
|
|
8
|
-
tui_utilities-1.0.
|
|
9
|
-
tui_utilities-1.0.
|
|
10
|
-
tui_utilities-1.0.
|
|
7
|
+
tui_utilities-1.0.27.dist-info/METADATA,sha256=jc1B2efzjLYoCEc6T8rBNIjgJ9VEkuHUB1wfSvAeuuM,4250
|
|
8
|
+
tui_utilities-1.0.27.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
+
tui_utilities-1.0.27.dist-info/top_level.txt,sha256=TF1KuV0fMB1rkFRhqaCkqjprAnH-Tpc4Klsxwif5RWI,14
|
|
10
|
+
tui_utilities-1.0.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|