QScintilla/Shell.py

changeset 97
c4086afea02b
parent 55
b5c84934de9c
child 128
13e96bd0f5a5
equal deleted inserted replaced
96:9624a110667d 97:c4086afea02b
15 from PyQt4.Qsci import QsciScintilla 15 from PyQt4.Qsci import QsciScintilla
16 16
17 from E5Gui.E5Application import e5App 17 from E5Gui.E5Application import e5App
18 18
19 from . import Lexers 19 from . import Lexers
20 from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION 20 from .QsciScintillaCompat import QsciScintillaCompat
21 21
22 import Preferences 22 import Preferences
23 import UI.PixmapCache 23 import UI.PixmapCache
24 24
25 from Debugger.DebugClientCapabilities import HasShell, HasCompleter 25 from Debugger.DebugClientCapabilities import HasCompleter
26 26
27 from .ShellHistoryDialog import ShellHistoryDialog 27 from .ShellHistoryDialog import ShellHistoryDialog
28 28
29 class Shell(QsciScintillaCompat): 29 class Shell(QsciScintillaCompat):
30 """ 30 """
733 Re-implemented to handle the user input a key at a time. 733 Re-implemented to handle the user input a key at a time.
734 734
735 @param ev key event (QKeyEvent) 735 @param ev key event (QKeyEvent)
736 """ 736 """
737 txt = ev.text() 737 txt = ev.text()
738 key = ev.key()
739 738
740 # See it is text to insert. 739 # See it is text to insert.
741 if len(txt) and txt >= " ": 740 if len(txt) and txt >= " ":
742 if not self.__isCursorOnLastLine(): 741 if not self.__isCursorOnLastLine():
743 line, col = self.__getEndPos() 742 line, col = self.__getEndPos()

eric ide

mercurial