mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Added comments
This commit is contained in:
parent
8c5b13bcae
commit
fc37a6f05e
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue