From a420dfae0f270e5eaf7b4c7187045cb7b341f8b1 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 7 Mar 2023 21:03:12 +0200 Subject: [PATCH] Fixed for checklist --- slpkg/dialog_box.py | 7 ++++--- slpkg/main.py | 4 ++-- slpkg/slackbuild.py | 4 ++-- slpkg/views/views.py | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/slpkg/dialog_box.py b/slpkg/dialog_box.py index 81cd9c7c..fa90c12e 100644 --- a/slpkg/dialog_box.py +++ b/slpkg/dialog_box.py @@ -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 diff --git a/slpkg/main.py b/slpkg/main.py index 3df3d9bf..64c09047 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -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 diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index f7173ea5..bf4dbca1 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -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 diff --git a/slpkg/views/views.py b/slpkg/views/views.py index cbe7c981..d0716cb8 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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