QScintilla/Terminal.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1507
9225700cbff5
--- a/QScintilla/Terminal.py	Sun Jun 19 17:50:39 2011 +0200
+++ b/QScintilla/Terminal.py	Sun Jun 19 19:36:27 2011 +0200
@@ -41,7 +41,7 @@
         @param vm reference to the viewmanager object
         @param parent parent widget (QWidget)
         """
-        QsciScintillaCompat.__init__(self, parent)
+        super().__init__(parent)
         self.setUtf8(True)
         
         self.vm = vm
@@ -199,7 +199,7 @@
         """
         Private method called, when the shell process has finished.
         """
-        QsciScintilla.clear(self)
+        super().clear()
         
         self.__startAct.setEnabled(True)
         self.__stopAct.setEnabled(False)
@@ -481,7 +481,7 @@
         @param event the mouse press event (QMouseEvent)
         """
         self.setFocus()
-        QsciScintillaCompat.mousePressEvent(self, event)
+        super().mousePressEvent(event)
         
     def editorCommand(self, cmd):
         """
@@ -517,7 +517,7 @@
                 line, col = self.__getEndPos()
                 self.setCursorPosition(line, col)
                 self.prline, self.prcol = self.getCursorPosition()
-            QsciScintillaCompat.keyPressEvent(self, ev)
+            super().keyPressEvent(ev)
             self.incrementalSearchActive = True
         else:
             ev.ignore()
@@ -830,7 +830,7 @@
         """
         Public slot to clear the display.
         """
-        QsciScintillaCompat.clear(self)
+        super().clear()
         self.__send("\n")
         
     def __reset(self):
@@ -907,7 +907,7 @@
         self.setCaretWidth(self.caretWidth)
         self.setCursorFlashTime(QApplication.cursorFlashTime())
         
-        QsciScintillaCompat.focusInEvent(self, event)
+        super().focusInEvent(event)
         
     def focusOutEvent(self, event):
         """
@@ -920,7 +920,7 @@
         except AttributeError:
             pass
         self.setCaretWidth(0)
-        QsciScintillaCompat.focusOutEvent(self, event)
+        super().focusOutEvent(event)
         
     def insert(self, txt):
         """

eric ide

mercurial