From a4afa7deef216df7ec41f0305f8336bf14257f34 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 7 May 2023 20:00:01 +0300 Subject: [PATCH] Updated for msgbox --- slpkg/dialog_configs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/slpkg/dialog_configs.py b/slpkg/dialog_configs.py index c42cd77d..aba1b135 100644 --- a/slpkg/dialog_configs.py +++ b/slpkg/dialog_configs.py @@ -83,11 +83,13 @@ class FormConfigs(Configs): for key, value in zip(self.configs['CONFIGS'].keys(), tags): if key in keys and value not in values: - self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60) + self.dialogbox.msgbox(f"\nError: Value for '{key}', it must be 'true' or 'false.'\n", + height=7, width=60) return False - if key in ['DOWNLOADER'] and value not in ['wget', 'curl', 'lftp']: - self.dialogbox.msgbox(f"\nError value for {key}. It must be 'wget' or 'curl'\n", height=7, width=60) + if key in ['DOWNLOADER'] and value not in ['wget2', 'wget', 'curl', 'lftp']: + self.dialogbox.msgbox(f"\nError: Value for '{key}' not supported.\n", + height=7, width=60) return False return True