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