def accept(self): if self._iconPath is not None: if self._iconPath.lower().find(default_icons_dir.lower()) == 0: self._iconPath = self._iconPath[len(default_icons_dir)+1:] self._createShortcutFunction(self._shortcutName.text(), self._shortcutURI.text(), self._iconPath) QWizard.accept(self)
def accept(self): if self.hasVisitedPage(AutoWizard.Page_Local): self.addFilesCreateProcess(self.localPage.evidence) elif self.hasVisitedPage(AutoWizard.Page_Device): self.addDevicesCreateProcess(self.devicePage.device) del self.devicePage.device if self.hasVisitedPage(AutoWizard.Page_PostProcessConfig): pass QWizard.accept(self)