src/eric7/QScintilla/TypingCompleters/CompleterBase.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/QScintilla/TypingCompleters/CompleterBase.py
--- a/src/eric7/QScintilla/TypingCompleters/CompleterBase.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/QScintilla/TypingCompleters/CompleterBase.py	Wed Jul 13 14:55:47 2022 +0200
@@ -18,26 +18,27 @@
     """
     Class implementing the base class for all completers.
     """
+
     def __init__(self, editor, parent=None):
         """
         Constructor
-        
+
         @param editor reference to the editor object (QScintilla.Editor)
         @param parent reference to the parent object (QObject)
             If parent is None, we set the editor as the parent.
         """
         if parent is None:
             parent = editor
-        
+
         super().__init__(parent)
-        
+
         self.editor = editor
         self.enabled = False
-    
+
     def setEnabled(self, enable):
         """
         Public slot to set the enabled state.
-        
+
         @param enable flag indicating the new enabled state (boolean)
         """
         if enable:
@@ -47,34 +48,34 @@
             if self.enabled:
                 self.editor.SCN_CHARADDED.disconnect(self.charAdded)
         self.enabled = enable
-    
+
     def isEnabled(self):
         """
         Public method to get the enabled state.
-        
+
         @return enabled state (boolean)
         """
         return self.enabled
-    
+
     def charAdded(self, charNumber):
         """
         Public slot called to handle the user entering a character.
-        
+
         Note 1: this slot must be overridden by subclasses implementing the
         specific behavior for the language.
-        
+
         Note 2: charNumber can be greater than 255 because the editor is
         in UTF-8 mode by default.
-        
+
         @param charNumber value of the character entered (integer)
         """
-        pass    # just do nothing
-    
+        pass  # just do nothing
+
     def readSettings(self):
         """
         Public slot called to reread the configuration parameters.
-        
+
         Note: this slot should be overridden by subclasses having
         configurable parameters.
         """
-        pass    # just do nothing
+        pass  # just do nothing

eric ide

mercurial