Plugins/PluginWizardQRegularExpression.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
67 67
68 def __initAction(self): 68 def __initAction(self):
69 """ 69 """
70 Private method to initialize the action. 70 Private method to initialize the action.
71 """ 71 """
72 self.action = E5Action(self.trUtf8('QRegularExpression Wizard'), 72 self.action = E5Action(
73 self.trUtf8('QRegularE&xpression Wizard...'), 0, 0, self, 73 self.trUtf8('QRegularExpression Wizard'),
74 'wizards_qregularexpression') 74 self.trUtf8('QRegularE&xpression Wizard...'), 0, 0, self,
75 'wizards_qregularexpression')
75 self.action.setStatusTip(self.trUtf8('QRegularExpression Wizard')) 76 self.action.setStatusTip(self.trUtf8('QRegularExpression Wizard'))
76 self.action.setWhatsThis(self.trUtf8( 77 self.action.setWhatsThis(self.trUtf8(
77 """<b>QRegularExpression Wizard</b>""" 78 """<b>QRegularExpression Wizard</b>"""
78 """<p>This wizard opens a dialog for entering all the parameters""" 79 """<p>This wizard opens a dialog for entering all the parameters"""
79 """ needed to create a QRegularExpression string. The generated""" 80 """ needed to create a QRegularExpression string. The generated"""
118 Private method to handle the wizards action. 119 Private method to handle the wizards action.
119 """ 120 """
120 editor = e5App().getObject("ViewManager").activeWindow() 121 editor = e5App().getObject("ViewManager").activeWindow()
121 122
122 if editor == None: 123 if editor == None:
123 E5MessageBox.critical(self.__ui, 124 E5MessageBox.critical(
125 self.__ui,
124 self.trUtf8('No current editor'), 126 self.trUtf8('No current editor'),
125 self.trUtf8('Please open or create a file first.')) 127 self.trUtf8('Please open or create a file first.'))
126 else: 128 else:
127 code, ok = self.__callForm(editor) 129 code, ok = self.__callForm(editor)
128 if ok: 130 if ok:

eric ide

mercurial