ProjectDjangoTagsMenu/MultiLineInputDialog.py

changeset 26
b21b4fc418bc
parent 23
070a6c65c8a9
child 30
4ff7495f67b1
equal deleted inserted replaced
24:200ccb1e083c 26:b21b4fc418bc
7 Module implementing a dialog for the input of multi line text. 7 Module implementing a dialog for the input of multi line text.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtGui import QDialog 12 from PyQt5.QtWidgets import QDialog
13 13
14 from .Ui_MultiLineInputDialog import Ui_MultiLineInputDialog 14 from .Ui_MultiLineInputDialog import Ui_MultiLineInputDialog
15 15
16 16
17 class MultiLineInputDialog(QDialog, Ui_MultiLineInputDialog): 17 class MultiLineInputDialog(QDialog, Ui_MultiLineInputDialog):
38 return self.multiLineEdit.toPlainText() 38 return self.multiLineEdit.toPlainText()
39 39
40 @staticmethod 40 @staticmethod
41 def getText(parent, title, label, default=""): 41 def getText(parent, title, label, default=""):
42 """ 42 """
43 Static method to create the dialog and return the multi line text. 43 Public static method to create the dialog and return the multi line
44 text.
44 45
45 @param parent reference to the parent widget (QWidget) 46 @param parent reference to the parent widget (QWidget)
46 @param title title of the dialog (string) 47 @param title title of the dialog (string)
47 @param label label for the entry field (string) 48 @param label label for the entry field (string)
48 @param default default value for the entry field (string) 49 @param default default value for the entry field (string)

eric ide

mercurial