mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-20 10:26:44 +01:00
Updated for form height
This commit is contained in:
parent
06e686f81b
commit
904c32ba29
2 changed files with 4 additions and 3 deletions
|
@ -34,14 +34,14 @@ class DialogBox(Configs):
|
|||
|
||||
return code, tags
|
||||
|
||||
def mixedform(self, text: str, title: str, elements: list, height: int, width: int) -> Tuple[bool, list]:
|
||||
def mixedform(self, text: str, title: str, elements: list, height: int, width: int, form_height) -> Tuple[bool, list]:
|
||||
""" Display a mixedform box. """
|
||||
self.more_kwargs.update(
|
||||
{"item_help": True,
|
||||
"help_tags": True}
|
||||
)
|
||||
code, tags = self.d.mixedform(text=text, title=title, elements=elements, # type: ignore
|
||||
height=height, width=width, help_button=True,
|
||||
height=height, width=width, form_height=form_height, help_button=True,
|
||||
help_status=True, **self.more_kwargs)
|
||||
|
||||
return code, tags
|
||||
|
|
|
@ -33,6 +33,7 @@ class FormConfigs(Configs):
|
|||
elements: list = []
|
||||
height: int = 35
|
||||
width: int = 74
|
||||
form_height: int = 0
|
||||
text: str = f'Edit the configuration file: {self.config_file}'
|
||||
title: str = ' Configuration File '
|
||||
|
||||
|
@ -46,7 +47,7 @@ class FormConfigs(Configs):
|
|||
[(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, form_height)
|
||||
|
||||
os.system('clear')
|
||||
|
||||
|
|
Loading…
Reference in a new issue