Plugins/PluginWizardDotDesktop.py

changeset 6735
31e263d49c04
parent 6645
ad476851d7e0
equal deleted inserted replaced
6734:1eaf6955acf5 6735:31e263d49c04
112 Private method to handle the wizards action. 112 Private method to handle the wizards action.
113 """ 113 """
114 editor = e5App().getObject("ViewManager").activeWindow() 114 editor = e5App().getObject("ViewManager").activeWindow()
115 115
116 if editor is None: 116 if editor is None:
117 E5MessageBox.critical( 117 E5MessageBox.critical(
118 self.__ui, 118 self.__ui,
119 self.tr('No current editor'), 119 self.tr('No current editor'),
120 self.tr('Please open or create a file first.')) 120 self.tr('Please open or create a file first.'))
121 else: 121 else:
122 if editor.text(): 122 if editor.text():
123 ok = E5MessageBox.yesNo( 123 ok = E5MessageBox.yesNo(
124 self.__ui, 124 self.__ui,
125 self.tr(".desktop Wizard"), 125 self.tr(".desktop Wizard"),

eric ide

mercurial