Fix dialog.BadPythonDialogUsage #179

This commit is contained in:
Dimitris Zlatanidis 2024-03-16 22:34:23 +02:00
parent a026bc31d7
commit 08b16023bf

View file

@ -43,7 +43,7 @@ class FormConfigs(Configs):
elif value is False:
value: str = 'false'
elements.extend(
[(key, i, 1, value, i, 21, 47, 200, '0x0', f'Config: {key} = {value}')]
[(key, i, 1, str(value), i, 21, 47, 200, '0x0', f'Config: {key} = {value}')]
)
code, tags = self.dialogbox.mixedform(text, title, elements, height, width)
@ -78,7 +78,9 @@ class FormConfigs(Configs):
'PARALLEL_DOWNLOADS',
'SPINNING_BAR',
'CASE_INSENSITIVE',
'PROCESS_LOG'
'PROCESS_LOG',
'URLLIB_RETRIES',
'URLLIB_REDIRECT'
]
values: list = ['true', 'false']
@ -122,7 +124,10 @@ class FormConfigs(Configs):
'PARALLEL_DOWNLOADS =',
'SPINNING_BAR =',
'CASE_SENSITIVE =',
'PROCESS_LOG =')
'PROCESS_LOG =',
'URLLIB_RETRIES =',
'URLLIB_REDIRECT =',
'URLLIB_TIMEOUT =')
):
line: str = line.replace('"', '')