eric7/E5Gui/EricSimpleHelpDialog.py

branch
eric7
changeset 8358
144a6b854f70
parent 8357
a081458cc57b
child 8359
0e29e54e9269
diff -r a081458cc57b -r 144a6b854f70 eric7/E5Gui/EricSimpleHelpDialog.py
--- a/eric7/E5Gui/EricSimpleHelpDialog.py	Sat May 22 19:52:34 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2015 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing a dialog to show some help text.
-"""
-
-from PyQt6.QtCore import Qt
-from PyQt6.QtWidgets import QDialog
-
-from .Ui_EricSimpleHelpDialog import Ui_EricSimpleHelpDialog
-
-
-class EricSimpleHelpDialog(QDialog, Ui_EricSimpleHelpDialog):
-    """
-    Class implementing a dialog to show some help text.
-    """
-    def __init__(self, title="", label="", helpStr="", parent=None):
-        """
-        Constructor
-        
-        @param title title of the window
-        @type str
-        @param label label for the help
-        @type str
-        @param helpStr HTML help text
-        @type str
-        @param parent reference to the parent widget
-        @type QWidget
-        """
-        super().__init__(parent)
-        self.setupUi(self)
-        self.setWindowFlags(Qt.WindowType.Window)
-        
-        self.setWindowTitle(title)
-        if label:
-            self.helpLabel.setText(label)
-        else:
-            self.helpLabel.hide()
-        self.helpEdit.setHtml(helpStr)

eric ide

mercurial