RefactoringRope/HelpDialog.py

changeset 55
d501156be247
parent 46
a726d19facfc
child 62
1077db8d0589
equal deleted inserted replaced
54:e795cb8240aa 55:d501156be247
43 txt = f.read() 43 txt = f.read()
44 f.close() 44 f.close()
45 self.helpEdit.setPlainText(txt) 45 self.helpEdit.setPlainText(txt)
46 except IOError as err: 46 except IOError as err:
47 self.helpEdit.setPlainText( 47 self.helpEdit.setPlainText(
48 self.trUtf8("Could not read file {0}.\nReason: {1}")\ 48 self.trUtf8("Could not read file {0}.\nReason: {1}")
49 .format(helpfile, str(err))) 49 .format(helpfile, str(err)))
50 50
51 def on_buttonBox_clicked(self, button): 51 def on_buttonBox_clicked(self, button):
52 """ 52 """
53 Private slot called by a button of the button box clicked. 53 Private slot called by a button of the button box clicked.
66 66
67 @param txt text to search for (string) 67 @param txt text to search for (string)
68 @param case flag indicating a case sensitive search (boolean) 68 @param case flag indicating a case sensitive search (boolean)
69 @param word flag indicating a word based search (boolean) 69 @param word flag indicating a word based search (boolean)
70 @param backwards flag indicating a backwards search (boolean) 70 @param backwards flag indicating a backwards search (boolean)
71 @return flag indicating the search found another occurrence (boolean)
71 """ 72 """
72 doc = self.helpEdit.document() 73 doc = self.helpEdit.document()
73 cur = self.helpEdit.textCursor() 74 cur = self.helpEdit.textCursor()
74 75
75 findFlags = QTextDocument.FindFlags() 76 findFlags = QTextDocument.FindFlags()

eric ide

mercurial