Added comments

This commit is contained in:
Dimitris Zlatanidis 2022-12-28 20:19:07 +02:00
parent 8c5b13bcae
commit fc37a6f05e

View file

@ -11,6 +11,7 @@ locale.setlocale(locale.LC_ALL, '')
class DialogBox:
""" Class for dialog box library. """
def __init__(self):
self.configs = Configs()
@ -19,7 +20,6 @@ class DialogBox:
def checklist(self, text, title, height, width, list_height, choices, packages):
""" Display a checklist box. """
if self.configs.dialog:
code, tags = self.d.checklist(text, title=title, height=height, width=width,
list_height=list_height, choices=choices)
@ -31,7 +31,6 @@ class DialogBox:
def mixedform(self, text, title, elements, height, width):
""" Display a mixedform box. """
if self.configs.dialog:
code, tags = self.d.mixedform(text=text, title=title, elements=elements,
height=height, width=width, help_button=True)
@ -42,11 +41,11 @@ class DialogBox:
return code, tags
def msgbox(self, text, height, width):
""" Display a message box. """
if self.configs.dialog:
self.d.msgbox(text, height, width)
def textbox(self, text, height, width):
""" Display a text box. """
if self.configs.dialog:
self.d.textbox(text, height, width)