Plugins/PluginWizardQInputDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 3004
c4bf32c791d0
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
74 'wizards_qinputdialog') 74 'wizards_qinputdialog')
75 self.action.setStatusTip(self.trUtf8('QInputDialog Wizard')) 75 self.action.setStatusTip(self.trUtf8('QInputDialog Wizard'))
76 self.action.setWhatsThis(self.trUtf8( 76 self.action.setWhatsThis(self.trUtf8(
77 """<b>QInputDialog Wizard</b>""" 77 """<b>QInputDialog Wizard</b>"""
78 """<p>This wizard opens a dialog for entering all the parameters""" 78 """<p>This wizard opens a dialog for entering all the parameters"""
79 """ needed to create a QInputDialog. The generated code is inserted""" 79 """ needed to create a QInputDialog. The generated code is"""
80 """ at the current cursor position.</p>""" 80 """ inserted at the current cursor position.</p>"""
81 )) 81 ))
82 self.action.triggered[()].connect(self.__handle) 82 self.action.triggered[()].connect(self.__handle)
83 83
84 self.__ui.addE5Actions([self.action], 'wizards') 84 self.__ui.addE5Actions([self.action], 'wizards')
85 85
112 else: 112 else:
113 return (None, False) 113 return (None, False)
114 114
115 def __handle(self): 115 def __handle(self):
116 """ 116 """
117 Private method to handle the wizards action 117 Private method to handle the wizards action.
118 """ 118 """
119 editor = e5App().getObject("ViewManager").activeWindow() 119 editor = e5App().getObject("ViewManager").activeWindow()
120 120
121 if editor == None: 121 if editor == None:
122 E5MessageBox.critical(self.__ui, 122 E5MessageBox.critical(self.__ui,

eric ide

mercurial