772 UI.PixmapCache.getPixmap("designer48"), |
772 UI.PixmapCache.getPixmap("designer48"), |
773 self.tr("Form Compilation"), |
773 self.tr("Form Compilation"), |
774 self.tr( |
774 self.tr( |
775 "<p>The compilation of the form file failed.</p>" |
775 "<p>The compilation of the form file failed.</p>" |
776 "<p>Reason: {0}</p>").format(str(msg)), |
776 "<p>Reason: {0}</p>").format(str(msg)), |
777 kind=NotificationTypes.Critical, |
777 kind=NotificationTypes.CRITICAL, |
778 timeout=0) |
778 timeout=0) |
779 else: |
779 else: |
780 ui.showNotification( |
780 ui.showNotification( |
781 UI.PixmapCache.getPixmap("designer48"), |
781 UI.PixmapCache.getPixmap("designer48"), |
782 self.tr("Form Compilation"), |
782 self.tr("Form Compilation"), |
783 self.tr("The compilation of the form file failed."), |
783 self.tr("The compilation of the form file failed."), |
784 kind=NotificationTypes.Critical, |
784 kind=NotificationTypes.CRITICAL, |
785 timeout=0) |
785 timeout=0) |
786 self.compileProc = None |
786 self.compileProc = None |
787 |
787 |
788 def __compileUI(self, fn, noDialog=False, progress=None): |
788 def __compileUI(self, fn, noDialog=False, progress=None): |
789 """ |
789 """ |