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