mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Fixed for checklist
This commit is contained in:
parent
9c335f7775
commit
a420dfae0f
4 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue