QScintilla/SearchReplaceWidget.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/QScintilla/SearchReplaceWidget.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/QScintilla/SearchReplaceWidget.py	Fri Mar 11 16:51:57 2011 +0100
@@ -22,6 +22,7 @@
 
 import UI.PixmapCache
 
+
 class SearchReplaceWidget(QWidget):
     """
     Class implementing the search and replace widget.
@@ -30,7 +31,7 @@
     """
     searchListChanged = pyqtSignal()
     
-    def __init__(self, replace, vm, parent = None):
+    def __init__(self, replace, vm, parent=None):
         """
         Constructor
         
@@ -49,9 +50,9 @@
             self.ui = Ui_ReplaceWidget()
             whatsThis = self.trUtf8(r"""
 <b>Find and Replace</b>
-<p>This dialog is used to find some text and replace it with another text. 
-By checking the various checkboxes, the search can be made more specific. The search 
-string might be a regular expression. In a regular expression, special characters 
+<p>This dialog is used to find some text and replace it with another text.
+By checking the various checkboxes, the search can be made more specific. The search
+string might be a regular expression. In a regular expression, special characters
 interpreted are:</p>
 """
             )
@@ -59,8 +60,8 @@
             self.ui = Ui_SearchWidget()
             whatsThis = self.trUtf8(r"""
 <b>Find</b>
-<p>This dialog is used to find some text. By checking the various checkboxes, the search 
-can be made more specific. The search string might be a regular expression. In a regular 
+<p>This dialog is used to find some text. By checking the various checkboxes, the search
+can be made more specific. The search string might be a regular expression. In a regular
 expression, special characters interpreted are:</p>
 """
             )
@@ -383,7 +384,7 @@
         
         return ok
 
-    def __showFind(self, text = ''):
+    def __showFind(self, text=''):
         """
         Private method to display this widget in find mode.
         
@@ -598,7 +599,7 @@
             self.viewmanager.searchPrevAct.alternateShortcut())
         self.findPrevAct.setShortcutContext(Qt.WidgetShortcut)
 
-    def show(self, text = ''):
+    def show(self, text=''):
         """
         Overridden slot from QWidget.
         
@@ -629,4 +630,4 @@
             if aw:
                 aw.setFocus(Qt.ActiveWindowFocusReason)
             event.accept()
-            self.close()
\ No newline at end of file
+            self.close()

eric ide

mercurial