Fixed for checklist

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 21:03:12 +02:00
parent 9c335f7775
commit a420dfae0f
4 changed files with 10 additions and 9 deletions

View file

@ -22,7 +22,7 @@ class DialogBox(Configs):
self.d.set_background_title(f'{self.prog_name} {Version().version} - Software Package Manager')
def checklist(self, text: str, packages: list, title: str, height: int, width: int,
list_height: int, choices: list, help_status):
list_height: int, choices: list):
""" Display a checklist box. """
more_kwargs: dict = {}
@ -30,7 +30,7 @@ class DialogBox(Configs):
more_kwargs.update({"item_help": True})
code, tags = self.d.checklist(text=text, choices=choices, title=title, height=height, width=width,
list_height=list_height, help_status=help_status, **more_kwargs)
list_height=list_height, help_status=True, **more_kwargs)
else:
code: bool = False
tags: list = packages
@ -46,7 +46,8 @@ class DialogBox(Configs):
"help_tags": True})
code, tags = self.d.mixedform(text=text, title=title, elements=elements, # type: ignore
height=height, width=width, help_button=True, help_status=True, **more_kwargs)
height=height, width=width, help_button=True,
help_status=True, **more_kwargs)
else:
code: bool = False
tags: list = elements

View file

@ -364,8 +364,8 @@ class Argparse(Configs):
return packages
text: str = f'There are {len(choices)} packages:'
code, tags = self.dialogbox.checklist(text, packages, title, height, width, list_height,
choices, True)
code, tags = self.dialogbox.checklist(text, packages, title, height,
width, list_height, choices)
if not code:
return packages

View file

@ -372,8 +372,8 @@ class Slackbuilds(Configs):
text: str = f'There are {len(choices)} dependencies:'
code, tags = self.dialogbox.checklist(text, dependencies, title, height, width, list_height,
choices, True)
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
width, list_height, choices)
if not code:
return dependencies

View file

@ -176,8 +176,8 @@ class ViewMessage(Configs):
text: str = f'There are {len(choices)} dependencies:'
code, tags = self.dialogbox.checklist(text, dependencies, title, height, width, list_height,
choices, True)
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
width, list_height, choices)
if not code:
return dependencies