QScintilla/QsciScintillaCompat.py

changeset 1443
9b9396fc54aa
parent 1131
7781e396c903
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1440:268366c65cbb 1443:9b9396fc54aa
8 """ 8 """
9 9
10 from PyQt4.QtCore import Qt 10 from PyQt4.QtCore import Qt
11 from PyQt4.QtGui import QApplication, QPalette, QColor 11 from PyQt4.QtGui import QApplication, QPalette, QColor
12 from PyQt4.Qsci import QsciScintilla, \ 12 from PyQt4.Qsci import QsciScintilla, \
13 QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR 13 QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, \
14 QsciScintillaBase
14 15
15 16
16 ############################################################################### 17 ###############################################################################
17 18
18 def QSCINTILLA_VERSION(): 19 def QSCINTILLA_VERSION():
977 978
978 def focusOutEvent(self, event): 979 def focusOutEvent(self, event):
979 """ 980 """
980 Public method called when the editor loses focus. 981 Public method called when the editor loses focus.
981 982
982 @param event the event object (QFocusEvent) 983 @param event event object (QFocusEvent)
983 """ 984 """
984 if self.isListActive(): 985 if self.isListActive():
985 self.cancelList() 986 self.cancelList()
986 987
987 super().focusOutEvent(event) 988 super().focusOutEvent(event)
989
990 def event(self, evt):
991 """
992 Public method to handle events.
993
994 Note: We are not interested in the standard QsciScintilla event handling
995 because we do it our self.
996
997 @param evt event object to handle (QEvent)
998 """
999 return QsciScintillaBase.event(self, evt)
988 1000
989 ########################################################################### 1001 ###########################################################################
990 # interface methods to the mini editor 1002 # interface methods to the mini editor
991 ########################################################################### 1003 ###########################################################################
992 1004

eric ide

mercurial