--- a/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Wed Feb 05 19:13:12 2014 +0100 +++ b/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Thu Feb 06 19:29:47 2014 +0100 @@ -18,6 +18,14 @@ Class implementing a dialog to enter data for the creation of a tag. """ def __init__(self, labels, defaults=None, parent=None): + """ + Constructor + + @param labels list of labels for the entry fields (list of string) + @param defaults list of default values for the entry fields (list + of string) + @param parent reference to the parent widget (QWidget) + """ super(DjangoTagInputDialog, self).__init__(parent) assert 0 < len(labels) < 6 # max 5 entries allowed @@ -61,6 +69,11 @@ """ Static method to create the dialog and return the entered data. + @param parent reference to the parent widget (QWidget) + @param title title of the dialog (string) + @param labels list of labels for the entry fields (list of string) + @param defaults list of default values for the entry fields (list + of string) @return tuple of a tuple containing the text of all entries (tuple of string) and a flag indicating the acceptance state (boolean)