131 |
131 |
132 from WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import ( |
132 from WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import ( |
133 DotDesktopWizardDialog |
133 DotDesktopWizardDialog |
134 ) |
134 ) |
135 dlg = DotDesktopWizardDialog(None) |
135 dlg = DotDesktopWizardDialog(None) |
136 if dlg.exec_() == QDialog.Accepted: |
136 if dlg.exec() == QDialog.Accepted: |
137 code = dlg.getCode() |
137 code = dlg.getCode() |
138 if code: |
138 if code: |
139 editor.selectAll() |
139 editor.selectAll() |
140 # It should be done on this way to allow undo |
140 # It should be done on this way to allow undo |
141 editor.beginUndoAction() |
141 editor.beginUndoAction() |