eric6/QScintilla/QsciScintillaCompat.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8243
cc717c2ae956
--- a/eric6/QScintilla/QsciScintillaCompat.py	Sat Apr 10 18:31:17 2021 +0200
+++ b/eric6/QScintilla/QsciScintillaCompat.py	Sat Apr 10 18:38:27 2021 +0200
@@ -54,7 +54,7 @@
         
         @param parent parent widget (QWidget)
         """
-        super(QsciScintillaCompat, self).__init__(parent)
+        super().__init__(parent)
         
         self.zoom = 0
         
@@ -98,7 +98,7 @@
         @param m new modification status (boolean)
         """
         self.__modified = m
-        super(QsciScintillaCompat, self).setModified(m)
+        super().setModified(m)
         self.modificationChanged.emit(m)
     
     def setLexer(self, lex=None):
@@ -107,7 +107,7 @@
         
         @param lex the lexer to be set or None to reset it.
         """
-        super(QsciScintillaCompat, self).setLexer(lex)
+        super().setLexer(lex)
         if lex is None:
             self.clearStyles()
     
@@ -378,7 +378,7 @@
         
         @param zoom zoom factor increment (integer)
         """
-        super(QsciScintillaCompat, self).zoomIn(zoom)
+        super().zoomIn(zoom)
     
     def zoomOut(self, zoom=1):
         """
@@ -386,7 +386,7 @@
         
         @param zoom zoom factor decrement (integer)
         """
-        super(QsciScintillaCompat, self).zoomOut(zoom)
+        super().zoomOut(zoom)
     
     def zoomTo(self, zoom):
         """
@@ -395,7 +395,7 @@
         @param zoom zoom factor (integer)
         """
         self.zoom = zoom
-        super(QsciScintillaCompat, self).zoomTo(zoom)
+        super().zoomTo(zoom)
         self.zoomValueChanged.emit(self.zoom)
     
     def getZoom(self):
@@ -1309,9 +1309,9 @@
         @param margin margin number (integer)
         """
         if style < self.ArrowFoldStyle:
-            super(QsciScintillaCompat, self).setFolding(style, margin)
+            super().setFolding(style, margin)
         else:
-            super(QsciScintillaCompat, self).setFolding(
+            super().setFolding(
                 QsciScintilla.FoldStyle.PlainFoldStyle, margin)
             
             if style == self.ArrowFoldStyle:
@@ -1459,7 +1459,7 @@
             else:
                 self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL)
         
-        super(QsciScintillaCompat, self).focusOutEvent(event)
+        super().focusOutEvent(event)
     
     def event(self, evt):
         """
@@ -1519,21 +1519,21 @@
         """
         Public method to resize list box after creation.
         """
-        super(QsciScintillaCompat, self).autoCompleteFromDocument()
+        super().autoCompleteFromDocument()
         self.updateUserListSize()
     
     def autoCompleteFromAPIs(self):
         """
         Public method to resize list box after creation.
         """
-        super(QsciScintillaCompat, self).autoCompleteFromAPIs()
+        super().autoCompleteFromAPIs()
         self.updateUserListSize()
     
     def autoCompleteFromAll(self):
         """
         Public method to resize list box after creation.
         """
-        super(QsciScintillaCompat, self).autoCompleteFromAll()
+        super().autoCompleteFromAll()
         self.updateUserListSize()
     
     ###########################################################################

eric ide

mercurial