eric6/ViewManager/ViewManager.py

changeset 7277
adecbc6335c5
parent 7259
7c017076c12e
child 7282
33e92c553b0b
equal deleted inserted replaced
7276:25c93adb5de9 7277:adecbc6335c5
1070 QCoreApplication.translate('ViewManager', 'Join Lines'), 1070 QCoreApplication.translate('ViewManager', 'Join Lines'),
1071 QCoreApplication.translate('ViewManager', 'Join Lines'), 1071 QCoreApplication.translate('ViewManager', 'Join Lines'),
1072 QKeySequence(QCoreApplication.translate( 1072 QKeySequence(QCoreApplication.translate(
1073 'ViewManager', "Ctrl+J", "Edit|Join Lines")), 1073 'ViewManager', "Ctrl+J", "Edit|Join Lines")),
1074 0, 1074 0,
1075 self.copyActGrp, 'vm_edit_join_lines') 1075 self.editActGrp, 'vm_edit_join_lines')
1076 self.joinAct.setStatusTip(QCoreApplication.translate( 1076 self.joinAct.setStatusTip(QCoreApplication.translate(
1077 'ViewManager', 'Join Lines')) 1077 'ViewManager', 'Join Lines'))
1078 self.joinAct.setWhatsThis(QCoreApplication.translate( 1078 self.joinAct.setWhatsThis(QCoreApplication.translate(
1079 'ViewManager', 1079 'ViewManager',
1080 """<b>Join Lines</b>""" 1080 """<b>Join Lines</b>"""
5438 5438
5439 @param old reference to the widget loosing focus (QWidget) 5439 @param old reference to the widget loosing focus (QWidget)
5440 @param now reference to the widget gaining focus (QWidget) 5440 @param now reference to the widget gaining focus (QWidget)
5441 """ 5441 """
5442 from QScintilla.Shell import Shell 5442 from QScintilla.Shell import Shell
5443
5444 if now is None:
5445 return
5443 5446
5444 if not isinstance(now, (Editor, Shell)): 5447 if not isinstance(now, (Editor, Shell)):
5445 self.editActGrp.setEnabled(False) 5448 self.editActGrp.setEnabled(False)
5446 self.copyActGrp.setEnabled(False) 5449 self.copyActGrp.setEnabled(False)
5447 self.viewActGrp.setEnabled(False) 5450 self.viewActGrp.setEnabled(False)

eric ide

mercurial