src/eric7/Plugins/PluginWizardDotDesktop.py

branch
eric7
changeset 10331
c1a2ff7e3575
parent 10061
8bdad5699288
child 10437
2f70ca07f0af
equal deleted inserted replaced
10330:5ea038882dd6 10331:c1a2ff7e3575
113 113
114 def __handle(self): 114 def __handle(self):
115 """ 115 """
116 Private method to handle the wizards action. 116 Private method to handle the wizards action.
117 """ 117 """
118 from eric7.Plugins.WizardPlugins.DotDesktopWizard import DotDesktopWizardDialog
119
118 editor = ericApp().getObject("ViewManager").activeWindow() 120 editor = ericApp().getObject("ViewManager").activeWindow()
119 121
120 if editor is None: 122 if editor is None:
121 EricMessageBox.critical( 123 EricMessageBox.critical(
122 self.__ui, 124 self.__ui,
136 ) 138 )
137 if not ok: 139 if not ok:
138 ericApp().getObject("ViewManager").newEditor() 140 ericApp().getObject("ViewManager").newEditor()
139 editor = ericApp().getObject("ViewManager").activeWindow() 141 editor = ericApp().getObject("ViewManager").activeWindow()
140 142
141 from eric7.Plugins.WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import ( # __IGNORE_WARNING__ 143 dlg = DotDesktopWizardDialog.DotDesktopWizardDialog(None)
142 DotDesktopWizardDialog,
143 )
144
145 dlg = DotDesktopWizardDialog(None)
146 if dlg.exec() == QDialog.DialogCode.Accepted: 144 if dlg.exec() == QDialog.DialogCode.Accepted:
147 code = dlg.getCode() 145 code = dlg.getCode()
148 if code: 146 if code:
149 editor.selectAll() 147 editor.selectAll()
150 # It should be done on this way to allow undo 148 # It should be done on this way to allow undo

eric ide

mercurial