25 QVBoxLayout, |
25 QVBoxLayout, |
26 QSizePolicy, |
26 QSizePolicy, |
27 ) |
27 ) |
28 from PyQt6.Qsci import QsciScintilla |
28 from PyQt6.Qsci import QsciScintilla |
29 |
29 |
30 from EricWidgets.EricApplication import ericApp |
30 from eric7.EricWidgets.EricApplication import ericApp |
31 from EricWidgets import EricMessageBox, EricFileDialog |
31 from eric7.EricWidgets import EricMessageBox, EricFileDialog |
32 |
32 |
33 from .QsciScintillaCompat import QsciScintillaCompat |
33 from .QsciScintillaCompat import QsciScintillaCompat |
34 |
34 |
35 import Preferences |
35 from eric7 import Preferences, Utilities |
36 import Utilities |
36 |
37 |
37 from eric7.EricGui import EricPixmapCache |
38 import UI.PixmapCache |
38 |
39 |
39 from eric7.Debugger.DebugClientCapabilities import HasCompleter |
40 from Debugger.DebugClientCapabilities import HasCompleter |
|
41 |
40 |
42 |
41 |
43 class ShellAssembly(QWidget): |
42 class ShellAssembly(QWidget): |
44 """ |
43 """ |
45 Class implementing the containing widget for the shell. |
44 Class implementing the containing widget for the shell. |
62 """ |
61 """ |
63 super().__init__(parent) |
62 super().__init__(parent) |
64 |
63 |
65 self.__shell = Shell(dbs, vm, project, False, self) |
64 self.__shell = Shell(dbs, vm, project, False, self) |
66 |
65 |
67 from UI.SearchWidget import SearchWidget |
66 from eric7.UI.SearchWidget import SearchWidget |
68 |
67 |
69 self.__searchWidget = SearchWidget(self.__shell, self, horizontal) |
68 self.__searchWidget = SearchWidget(self.__shell, self, horizontal) |
70 self.__searchWidget.setSizePolicy( |
69 self.__searchWidget.setSizePolicy( |
71 QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred |
70 QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred |
72 ) |
71 ) |
343 |
342 |
344 # set the autocompletion and calltips function |
343 # set the autocompletion and calltips function |
345 self.__setAutoCompletion() |
344 self.__setAutoCompletion() |
346 self.__setCallTips() |
345 self.__setCallTips() |
347 |
346 |
348 self.setWindowIcon(UI.PixmapCache.getIcon("eric")) |
347 self.setWindowIcon(EricPixmapCache.getIcon("eric")) |
349 |
348 |
350 self.incrementalSearchString = "" |
349 self.incrementalSearchString = "" |
351 self.incrementalSearchActive = False |
350 self.incrementalSearchActive = False |
352 |
351 |
353 self.supportedEditorCommands = { |
352 self.supportedEditorCommands = { |