eric6/QScintilla/ShellWindow.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
child 8150
fc1ae39af8c9
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
212 self.exitAct.setWhatsThis(self.tr( 212 self.exitAct.setWhatsThis(self.tr(
213 """<b>Quit the Shell</b>""" 213 """<b>Quit the Shell</b>"""
214 """<p>This quits the Shell window.</p>""" 214 """<p>This quits the Shell window.</p>"""
215 )) 215 ))
216 self.exitAct.triggered.connect(self.quit) 216 self.exitAct.triggered.connect(self.quit)
217 self.exitAct.setMenuRole(QAction.QuitRole) 217 self.exitAct.setMenuRole(QAction.MenuRole.QuitRole)
218 self.fileActions.append(self.exitAct) 218 self.fileActions.append(self.exitAct)
219 219
220 self.newWindowAct = E5Action( 220 self.newWindowAct = E5Action(
221 self.tr('New Window'), 221 self.tr('New Window'),
222 UI.PixmapCache.getIcon("newWindow"), 222 UI.PixmapCache.getIcon("newWindow"),
249 249
250 self.clearRestartAct = E5Action( 250 self.clearRestartAct = E5Action(
251 self.tr('Restart and Clear'), 251 self.tr('Restart and Clear'),
252 UI.PixmapCache.getIcon("restartDelete"), 252 UI.PixmapCache.getIcon("restartDelete"),
253 self.tr('Restart and Clear'), 253 self.tr('Restart and Clear'),
254 Qt.Key_F4, 0, self, 'shell_clear_restart') 254 Qt.Key.Key_F4, 0, self, 'shell_clear_restart')
255 self.clearRestartAct.setStatusTip(self.tr( 255 self.clearRestartAct.setStatusTip(self.tr(
256 'Clear the window and restart the shell')) 256 'Clear the window and restart the shell'))
257 self.clearRestartAct.setWhatsThis(self.tr( 257 self.clearRestartAct.setWhatsThis(self.tr(
258 """<b>Restart and Clear</b>""" 258 """<b>Restart and Clear</b>"""
259 """<p>Clear the shell window and restart the shell for the""" 259 """<p>Clear the shell window and restart the shell for the"""
1058 """ 1058 """
1059 Private method to handle the zoom action. 1059 Private method to handle the zoom action.
1060 """ 1060 """
1061 from QScintilla.ZoomDialog import ZoomDialog 1061 from QScintilla.ZoomDialog import ZoomDialog
1062 dlg = ZoomDialog(self.__shell.getZoom(), self, None, True) 1062 dlg = ZoomDialog(self.__shell.getZoom(), self, None, True)
1063 if dlg.exec() == QDialog.Accepted: 1063 if dlg.exec() == QDialog.DialogCode.Accepted:
1064 value = dlg.getZoomSize() 1064 value = dlg.getZoomSize()
1065 self.__zoomTo(value) 1065 self.__zoomTo(value)
1066 1066
1067 def __zoomTo(self, value): 1067 def __zoomTo(self, value):
1068 """ 1068 """

eric ide

mercurial