mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-27 19:58:21 +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:
|
elif value is False:
|
||||||
value: str = 'false'
|
value: str = 'false'
|
||||||
elements.extend(
|
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)
|
code, tags = self.dialogbox.mixedform(text, title, elements, height, width)
|
||||||
|
@ -78,7 +78,9 @@ class FormConfigs(Configs):
|
||||||
'PARALLEL_DOWNLOADS',
|
'PARALLEL_DOWNLOADS',
|
||||||
'SPINNING_BAR',
|
'SPINNING_BAR',
|
||||||
'CASE_INSENSITIVE',
|
'CASE_INSENSITIVE',
|
||||||
'PROCESS_LOG'
|
'PROCESS_LOG',
|
||||||
|
'URLLIB_RETRIES',
|
||||||
|
'URLLIB_REDIRECT'
|
||||||
]
|
]
|
||||||
values: list = ['true', 'false']
|
values: list = ['true', 'false']
|
||||||
|
|
||||||
|
@ -122,7 +124,10 @@ class FormConfigs(Configs):
|
||||||
'PARALLEL_DOWNLOADS =',
|
'PARALLEL_DOWNLOADS =',
|
||||||
'SPINNING_BAR =',
|
'SPINNING_BAR =',
|
||||||
'CASE_SENSITIVE =',
|
'CASE_SENSITIVE =',
|
||||||
'PROCESS_LOG =')
|
'PROCESS_LOG =',
|
||||||
|
'URLLIB_RETRIES =',
|
||||||
|
'URLLIB_REDIRECT =',
|
||||||
|
'URLLIB_TIMEOUT =')
|
||||||
):
|
):
|
||||||
line: str = line.replace('"', '')
|
line: str = line.replace('"', '')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue