E5Gui/E5SimpleHelpDialog.py

changeset 5786
6a1b25cff5fb
parent 5769
944c04cec861
child 6048
82ad8ec9548c
equal deleted inserted replaced
5785:7c7c5f9e4fad 5786:6a1b25cff5fb
17 17
18 class E5SimpleHelpDialog(QDialog, Ui_E5SimpleHelpDialog): 18 class E5SimpleHelpDialog(QDialog, Ui_E5SimpleHelpDialog):
19 """ 19 """
20 Class implementing a dialog to show some help text. 20 Class implementing a dialog to show some help text.
21 """ 21 """
22 def __init__(self, title="", label="", help="", parent=None): 22 def __init__(self, title="", label="", helpStr="", parent=None):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param title title of the window 26 @param title title of the window
27 @type str 27 @type str
28 @param label label for the help 28 @param label label for the help
29 @type str 29 @type str
30 @param help HTML help text 30 @param helpStr HTML help text
31 @type str 31 @type str
32 @param parent reference to the parent widget 32 @param parent reference to the parent widget
33 @type QWidget 33 @type QWidget
34 """ 34 """
35 super(E5SimpleHelpDialog, self).__init__(parent) 35 super(E5SimpleHelpDialog, self).__init__(parent)
39 self.setWindowTitle(title) 39 self.setWindowTitle(title)
40 if label: 40 if label:
41 self.helpLabel.setText(label) 41 self.helpLabel.setText(label)
42 else: 42 else:
43 self.helpLabel.hide() 43 self.helpLabel.hide()
44 self.helpEdit.setHtml(help) 44 self.helpEdit.setHtml(helpStr)

eric ide

mercurial