55 @param default default value for the entry field |
55 @param default default value for the entry field |
56 @type str |
56 @type str |
57 @return multi line text and a flag indicating the acceptance state |
57 @return multi line text and a flag indicating the acceptance state |
58 @rtype tuple of (str, bool) |
58 @rtype tuple of (str, bool) |
59 """ |
59 """ |
60 dlg = MultiLineInputDialog(label, default, parent) |
60 dlg = MultiLineInputDialog(label, default, parent=parent) |
61 dlg.setWindowTitle(title) |
61 dlg.setWindowTitle(title) |
62 if dlg.exec() == QDialog.DialogCode.Accepted: |
62 if dlg.exec() == QDialog.DialogCode.Accepted: |
63 return dlg.getData(), True |
63 return dlg.getData(), True |
64 else: |
64 else: |
65 return "", False |
65 return "", False |