eric6/Project/ProjectFormsBrowser.py

changeset 7959
44e15eda6506
parent 7955
567f2ec958c3
child 8043
0acf98cd089a
child 8143
2c730d5fd177
equal deleted inserted replaced
7958:a70ebfad3d0e 7959:44e15eda6506
23 ProjectBrowserDirectoryItem, ProjectBrowserFormType 23 ProjectBrowserDirectoryItem, ProjectBrowserFormType
24 ) 24 )
25 from .ProjectBaseBrowser import ProjectBaseBrowser 25 from .ProjectBaseBrowser import ProjectBaseBrowser
26 26
27 import UI.PixmapCache 27 import UI.PixmapCache
28 from UI.NotificationWidget import NotificationTypes
29
28 30
29 import Preferences 31 import Preferences
30 import Utilities 32 import Utilities
31 33
32 from eric6config import getConfig 34 from eric6config import getConfig
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 """

eric ide

mercurial