Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/menu
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/menu')
-rw-r--r--archinstall/lib/menu/list_manager.py4
-rw-r--r--archinstall/lib/menu/menu.py2
-rw-r--r--archinstall/lib/menu/selection_menu.py4
-rw-r--r--archinstall/lib/menu/simple_menu.py2
4 files changed, 6 insertions, 6 deletions
diff --git a/archinstall/lib/menu/list_manager.py b/archinstall/lib/menu/list_manager.py
index cb567093..7e051528 100644
--- a/archinstall/lib/menu/list_manager.py
+++ b/archinstall/lib/menu/list_manager.py
@@ -54,7 +54,7 @@ The default implementation can handle simple lists and a key:value dictionary. T
A sample of basic usage is included at the end of the source.
More sophisticaded uses can be achieved by
-* changing the action list and the null_action during intialization
+* changing the action list and the null_action during initialization
```
opciones = ListManager('Vamos alla',opciones,[str(_('Add')),str(_('Delete'))],_('Add')).run()
```
@@ -198,7 +198,7 @@ class ListManager:
else:
self.target = self._data[data_formatted[target.value]]
- # Possible enhacement. If run_actions returns false a message line indicating the failure
+ # Possible enhancement. If run_actions returns false a message line indicating the failure
self.run_actions(target.value)
if target.value == self.cancel_action: # TODO dubious
diff --git a/archinstall/lib/menu/menu.py b/archinstall/lib/menu/menu.py
index c34814eb..3a26f6e7 100644
--- a/archinstall/lib/menu/menu.py
+++ b/archinstall/lib/menu/menu.py
@@ -115,7 +115,7 @@ class Menu(TerminalMenu):
# We check that the options are iterable. If not we abort. Else we copy them to lists
# it options is a dictionary we use the values as entries of the list
# if options is a string object, each character becomes an entry
- # if options is a list, we implictily build a copy to mantain immutability
+ # if options is a list, we implictily build a copy to maintain immutability
if not isinstance(p_options,Iterable):
log(f"Objects of type {type(p_options)} is not iterable, and are not supported at Menu",fg="red")
log(f"invalid parameter at Menu() call was at <{sys._getframe(1).f_code.co_name}>",level=logging.WARNING)
diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py
index 57e290f1..6a693730 100644
--- a/archinstall/lib/menu/selection_menu.py
+++ b/archinstall/lib/menu/selection_menu.py
@@ -219,7 +219,7 @@ class GeneralMenu:
def _setup_selection_menu_options(self):
""" Define the menu options.
- Menu options can be defined here in a subclass or done per progam calling self.set_option()
+ Menu options can be defined here in a subclass or done per program calling self.set_option()
"""
return
@@ -347,7 +347,7 @@ class GeneralMenu:
return self.exec_option(config_name, selector)
def exec_option(self, config_name :str, p_selector :Selector = None) -> bool:
- """ processes the exection of a given menu entry
+ """ processes the execution of a given menu entry
- pre process callback
- selection function
- post process callback
diff --git a/archinstall/lib/menu/simple_menu.py b/archinstall/lib/menu/simple_menu.py
index 947259eb..f7a2cf23 100644
--- a/archinstall/lib/menu/simple_menu.py
+++ b/archinstall/lib/menu/simple_menu.py
@@ -619,7 +619,7 @@ class TerminalMenu:
else:
unit_separated_entry = escaped_separator_pattern.sub("|", separator_pattern.sub("\\1\x1F", entry))
match_obj = menu_entry_pattern.match(unit_separated_entry)
- # this is none in case the entry was an emtpy string which
+ # this is none in case the entry was an empty string which
# will be interpreted as a separator
assert match_obj is not None
shortcut_key = match_obj.group(1)