eric6/QScintilla/ShellWindow.py

changeset 7960
e8fc383322f7
parent 7923
91e843545d9a
child 8143
2c730d5fd177
equal deleted inserted replaced
7959:44e15eda6506 7960:e8fc383322f7
58 """ 58 """
59 super(ShellWindow, self).__init__(parent) 59 super(ShellWindow, self).__init__(parent)
60 if name is not None: 60 if name is not None:
61 self.setObjectName(name) 61 self.setObjectName(name)
62 self.setWindowIcon(UI.PixmapCache.getIcon("shell")) 62 self.setWindowIcon(UI.PixmapCache.getIcon("shell"))
63 self.setWindowTitle(self.tr("eric6 Shell")) 63 self.setWindowTitle(self.tr("eric Shell"))
64 64
65 self.setStyle(Preferences.getUI("Style"), 65 self.setStyle(Preferences.getUI("Style"),
66 Preferences.getUI("StyleSheet")) 66 Preferences.getUI("StyleSheet"))
67 67
68 # initialize the APIs manager 68 # initialize the APIs manager
185 self.__createViewActions() 185 self.__createViewActions()
186 self.__createHelpActions() 186 self.__createHelpActions()
187 self.__createHistoryActions() 187 self.__createHistoryActions()
188 188
189 # read the keyboard shortcuts and make them identical to the main 189 # read the keyboard shortcuts and make them identical to the main
190 # eric6 shortcuts 190 # eric shortcuts
191 for act in self.helpActions: 191 for act in self.helpActions:
192 self.__readShortcut(act, "General") 192 self.__readShortcut(act, "General")
193 for act in self.editActions: 193 for act in self.editActions:
194 self.__readShortcut(act, "Edit") 194 self.__readShortcut(act, "Edit")
195 for act in self.fileActions: 195 for act in self.fileActions:
1008 """ 1008 """
1009 e5App().closeAllWindows() 1009 e5App().closeAllWindows()
1010 1010
1011 def __newWindow(self): 1011 def __newWindow(self):
1012 """ 1012 """
1013 Private slot to start a new instance of eric6. 1013 Private slot to start a new instance of eric.
1014 """ 1014 """
1015 program = sys.executable 1015 program = sys.executable
1016 eric6 = os.path.join(getConfig("ericDir"), "eric6_shell.py") 1016 eric6 = os.path.join(getConfig("ericDir"), "eric6_shell.py")
1017 args = [eric6] 1017 args = [eric6]
1018 QProcess.startDetached(program, args) 1018 QProcess.startDetached(program, args)
1023 1023
1024 @param venvName name of the virtual environment of the shell 1024 @param venvName name of the virtual environment of the shell
1025 @type str 1025 @type str
1026 """ 1026 """
1027 if venvName: 1027 if venvName:
1028 self.setWindowTitle(self.tr("eric6 Shell [{0}]").format(venvName)) 1028 self.setWindowTitle(self.tr("eric Shell [{0}]").format(venvName))
1029 else: 1029 else:
1030 self.setWindowTitle(self.tr("eric6 Shell")) 1030 self.setWindowTitle(self.tr("eric Shell"))
1031 1031
1032 ################################################################## 1032 ##################################################################
1033 ## Below are the action methods for the view menu 1033 ## Below are the action methods for the view menu
1034 ################################################################## 1034 ##################################################################
1035 1035
1091 """ 1091 """
1092 Private slot to show a little About message. 1092 Private slot to show a little About message.
1093 """ 1093 """
1094 E5MessageBox.about( 1094 E5MessageBox.about(
1095 self, 1095 self,
1096 self.tr("About eric6 Shell Window"), 1096 self.tr("About eric Shell Window"),
1097 self.tr( 1097 self.tr(
1098 "The eric6 Shell is a standalone shell window." 1098 "The eric Shell is a standalone shell window."
1099 " It uses the same backend as the debugger of" 1099 " It uses the same backend as the debugger of"
1100 " the full IDE, but is executed independently.")) 1100 " the full IDE, but is executed independently."))
1101 1101
1102 def __aboutQt(self): 1102 def __aboutQt(self):
1103 """ 1103 """
1104 Private slot to handle the About Qt dialog. 1104 Private slot to handle the About Qt dialog.
1105 """ 1105 """
1106 E5MessageBox.aboutQt(self, "eric6 Shell Window") 1106 E5MessageBox.aboutQt(self, "eric Shell Window")
1107 1107
1108 def __whatsThis(self): 1108 def __whatsThis(self):
1109 """ 1109 """
1110 Private slot called in to enter Whats This mode. 1110 Private slot called in to enter Whats This mode.
1111 """ 1111 """

eric ide

mercurial