eric7/QScintilla/ShellWindow.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 8312
800c432b34c8
child 8318
962bce857696
equal deleted inserted replaced
8313:dac33c7fce07 8314:e3642a6a1e71
36 36
37 from Debugger.DebugServer import DebugServer 37 from Debugger.DebugServer import DebugServer
38 from UI.SearchWidget import SearchWidget 38 from UI.SearchWidget import SearchWidget
39 from VirtualEnv.VirtualenvManager import VirtualenvManager 39 from VirtualEnv.VirtualenvManager import VirtualenvManager
40 40
41 from eric6config import getConfig 41 from eric7config import getConfig
42 42
43 43
44 class ShellWindow(E5MainWindow): 44 class ShellWindow(E5MainWindow):
45 """ 45 """
46 Class implementing a stand alone shell window. 46 Class implementing a stand alone shell window.
162 162
163 def getAPIsManager(self): 163 def getAPIsManager(self):
164 """ 164 """
165 Public method to get a reference to the APIs manager. 165 Public method to get a reference to the APIs manager.
166 166
167 @return the APIs manager object (eric6.QScintilla.APIsManager) 167 @return the APIs manager object (eric7.QScintilla.APIsManager)
168 """ 168 """
169 return self.__apisManager 169 return self.__apisManager
170 170
171 ################################################################## 171 ##################################################################
172 ## Below are action related methods 172 ## Below are action related methods
1040 def __newWindow(self): 1040 def __newWindow(self):
1041 """ 1041 """
1042 Private slot to start a new instance of eric. 1042 Private slot to start a new instance of eric.
1043 """ 1043 """
1044 program = sys.executable 1044 program = sys.executable
1045 eric6 = os.path.join(getConfig("ericDir"), "eric6_shell.py") 1045 eric7 = os.path.join(getConfig("ericDir"), "eric7_shell.py")
1046 args = [eric6] 1046 args = [eric7]
1047 QProcess.startDetached(program, args) 1047 QProcess.startDetached(program, args)
1048 1048
1049 def __virtualEnvironmentChanged(self, venvName): 1049 def __virtualEnvironmentChanged(self, venvName):
1050 """ 1050 """
1051 Private slot handling a change of the shell's virtual environment. 1051 Private slot handling a change of the shell's virtual environment.

eric ide

mercurial