mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Fix dialog.BadPythonDialogUsage #179
This commit is contained in:
parent
a026bc31d7
commit
08b16023bf
1 changed files with 8 additions and 3 deletions
|
@ -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('"', '')
|
||||
|
||||
|
|
Loading…
Reference in a new issue