Added help text

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 11:21:13 +02:00
parent 48ecd85c57
commit 1aefb23d46
2 changed files with 7 additions and 2 deletions

View file

@ -39,9 +39,14 @@ class DialogBox(Configs):
def mixedform(self, text: str, title: str, elements: list, height: int, width: int): def mixedform(self, text: str, title: str, elements: list, height: int, width: int):
""" Display a mixedform box. """ """ Display a mixedform box. """
more_kwargs: dict = {}
if self.dialog: if self.dialog:
more_kwargs.update({"item_help": True,
"help_tags": True})
code, tags = self.d.mixedform(text=text, title=title, elements=elements, # type: ignore code, tags = self.d.mixedform(text=text, title=title, elements=elements, # type: ignore
height=height, width=width, help_button=True) height=height, width=width, help_button=True, help_status=True, **more_kwargs)
else: else:
code: bool = False code: bool = False
tags: list = elements tags: list = elements

View file

@ -34,7 +34,7 @@ class FormConfigs(Configs):
elif value is False: elif value is False:
value: str = 'false' value: str = 'false'
elements += [ elements += [
(key, i, 1, value, i, 21, 47, 200, '0x0') (key, i, 1, value, i, 21, 47, 200, '0x0', value)
] ]
code, tags = self.dialogbox.mixedform(text, title, elements, height, width) code, tags = self.dialogbox.mixedform(text, title, elements, height, width)