RefactoringRope/HelpDialog.py

branch
server_client_variant
changeset 203
c38750e1bafd
parent 147
3f8a995f6e49
child 245
75a35a927952
--- a/RefactoringRope/HelpDialog.py	Wed Sep 27 19:50:44 2017 +0200
+++ b/RefactoringRope/HelpDialog.py	Fri Sep 29 10:23:35 2017 +0200
@@ -13,7 +13,7 @@
 from PyQt5.QtGui import QTextDocument, QTextCursor
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
 
-from Ui_HelpDialog import Ui_HelpDialog
+from .Ui_HelpDialog import Ui_HelpDialog
 
 import Globals
 
@@ -26,9 +26,12 @@
         """
         Constructor
         
-        @param title window title (string)
-        @param helpfile filename of the helpfile (string)
-        @param parent reference to the parent widget (QWidget)
+        @param title window title
+        @type str
+        @param helpfile filename of the helpfile
+        @type str
+        @param parent reference to the parent widget
+        @type QWidget
         """
         QDialog.__init__(self, parent)
         self.setupUi(self)
@@ -57,11 +60,12 @@
         """
         Private slot called by a button of the button box clicked.
         
-        @param button button that was clicked (QAbstractButton)
+        @param button button that was clicked
+        @type QAbstractButton
         """
         if button == self.searchButton:
             if self.__searchDlg is None:
-                from SearchDialog import SearchDialog
+                from .SearchDialog import SearchDialog
                 self.__searchDlg = SearchDialog(self)
             self.__searchDlg.showFind()
     
@@ -69,11 +73,16 @@
         """
         Public slot to find the next occurrence of a text.
         
-        @param txt text to search for (string)
-        @param case flag indicating a case sensitive search (boolean)
-        @param word flag indicating a word based search (boolean)
-        @param backwards flag indicating a backwards search (boolean)
-        @return flag indicating the search found another occurrence (boolean)
+        @param txt text to search for
+        @type str
+        @param case flag indicating a case sensitive search
+        @type bool
+        @param word flag indicating a word based search
+        @type bool
+        @param backwards flag indicating a backwards search
+        @type bool
+        @return flag indicating the search found another occurrence
+        @rtype bool
         """
         doc = self.helpEdit.document()
         cur = self.helpEdit.textCursor()
@@ -100,6 +109,7 @@
         """
         Public method to get a reference to the help widget.
         
-        @return reference to the help widget (QTextEdit)
+        @return reference to the help widget
+        @rtype QTextEdit
         """
         return self.helpEdit

eric ide

mercurial