tui-utilities 1.0.26__tar.gz → 1.0.27__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tui_utilities
3
- Version: 1.0.26
3
+ Version: 1.0.27
4
4
  Summary: Personal-use console utilities library
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tui_utilities"
3
- version = "1.0.26"
3
+ version = "1.0.27"
4
4
  description = "Personal-use console utilities library"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -17,7 +17,7 @@ def _choose_option(
17
17
  return selection
18
18
 
19
19
  def menu(
20
- options_list,
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
- options = {}
72
+ options_dictionary = {}
73
73
  key = 1
74
- for option in options_list:
74
+ for option in options:
75
75
  match option:
76
- case "Atrás": options["A"] = option
77
- case "Salir": options["S"] = option
76
+ case "Atrás": options_dictionary["A"] = option
77
+ case "Salir": options_dictionary["S"] = option
78
78
  case _:
79
- options[str(key)] = option
79
+ options_dictionary[str(key)] = option
80
80
  key += 1
81
- return _choose_option(options, message, selection_text, error)
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tui_utilities
3
- Version: 1.0.26
3
+ Version: 1.0.27
4
4
  Summary: Personal-use console utilities library
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  License: MIT
File without changes
File without changes