Plugins/PluginWizardPyRegExp.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
29 longDescription = """This plugin shows the Python re wizard.""" 29 longDescription = """This plugin shows the Python re wizard."""
30 pyqtApi = 2 30 pyqtApi = 2
31 # End-Of-Header 31 # End-Of-Header
32 32
33 error = "" 33 error = ""
34
34 35
35 class PyRegExpWizard(QObject): 36 class PyRegExpWizard(QObject):
36 """ 37 """
37 Class implementing the Python re wizard plugin. 38 Class implementing the Python re wizard plugin.
38 """ 39 """
110 else: 111 else:
111 return (None, False) 112 return (None, False)
112 113
113 def __handle(self): 114 def __handle(self):
114 """ 115 """
115 Private method to handle the wizards action 116 Private method to handle the wizards action
116 """ 117 """
117 editor = e5App().getObject("ViewManager").activeWindow() 118 editor = e5App().getObject("ViewManager").activeWindow()
118 119
119 if editor == None: 120 if editor == None:
120 E5MessageBox.critical(self.__ui, 121 E5MessageBox.critical(self.__ui,
121 self.trUtf8('No current editor'), 122 self.trUtf8('No current editor'),
122 self.trUtf8('Please open or create a file first.')) 123 self.trUtf8('Please open or create a file first.'))
123 else: 124 else:
124 code, ok = self.__callForm(editor) 125 code, ok = self.__callForm(editor)
125 if ok: 126 if ok:

eric ide

mercurial