523 return |
523 return |
524 |
524 |
525 try: |
525 try: |
526 shutil.copy(templateFile, fname) |
526 shutil.copy(templateFile, fname) |
527 except IOError as e: |
527 except IOError as e: |
528 QMessageBox.critical(self, |
528 E5MessageBox.critical(self, |
529 self.trUtf8("New Form"), |
529 self.trUtf8("New Form"), |
530 self.trUtf8("<p>The new form file <b>{0}</b> could not be created.<br>" |
530 self.trUtf8("<p>The new form file <b>{0}</b> could not be created.<br>" |
531 "Problem: {1}</p>").format(fname, str(e))) |
531 "Problem: {1}</p>").format(fname, str(e))) |
532 return |
532 return |
533 |
533 |
699 return self.compileProc |
699 return self.compileProc |
700 else: |
700 else: |
701 self.compileRunning = False |
701 self.compileRunning = False |
702 if progress is not None: |
702 if progress is not None: |
703 progress.cancel() |
703 progress.cancel() |
704 QMessageBox.critical(self, |
704 E5MessageBox.critical(self, |
705 self.trUtf8('Process Generation Error'), |
705 self.trUtf8('Process Generation Error'), |
706 self.trUtf8( |
706 self.trUtf8( |
707 'Could not start {0}.<br>' |
707 'Could not start {0}.<br>' |
708 'Ensure that it is in the search path.' |
708 'Ensure that it is in the search path.' |
709 ).format(self.uicompiler)) |
709 ).format(self.uicompiler)) |