Updated for msgbox

This commit is contained in:
Dimitris Zlatanidis 2023-05-07 20:00:01 +03:00
parent 85822942f9
commit a4afa7deef

View file

@ -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