src/eric7/EricWidgets/EricSimpleHelpDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
15 15
16 class EricSimpleHelpDialog(QDialog, Ui_EricSimpleHelpDialog): 16 class EricSimpleHelpDialog(QDialog, Ui_EricSimpleHelpDialog):
17 """ 17 """
18 Class implementing a dialog to show some help text. 18 Class implementing a dialog to show some help text.
19 """ 19 """
20
20 def __init__(self, title="", label="", helpStr="", parent=None): 21 def __init__(self, title="", label="", helpStr="", parent=None):
21 """ 22 """
22 Constructor 23 Constructor
23 24
24 @param title title of the window 25 @param title title of the window
25 @type str 26 @type str
26 @param label label for the help 27 @param label label for the help
27 @type str 28 @type str
28 @param helpStr HTML help text 29 @param helpStr HTML help text
31 @type QWidget 32 @type QWidget
32 """ 33 """
33 super().__init__(parent) 34 super().__init__(parent)
34 self.setupUi(self) 35 self.setupUi(self)
35 self.setWindowFlags(Qt.WindowType.Window) 36 self.setWindowFlags(Qt.WindowType.Window)
36 37
37 self.setWindowTitle(title) 38 self.setWindowTitle(title)
38 if label: 39 if label:
39 self.helpLabel.setText(label) 40 self.helpLabel.setText(label)
40 else: 41 else:
41 self.helpLabel.hide() 42 self.helpLabel.hide()

eric ide

mercurial