eric6/Project/ProjectInterfacesBrowser.py

changeset 7955
567f2ec958c3
parent 7923
91e843545d9a
child 7959
44e15eda6506
equal deleted inserted replaced
7954:d32319ede131 7955:567f2ec958c3
522 fileList = glob.glob(os.path.join(path, "*_idl.py")) 522 fileList = glob.glob(os.path.join(path, "*_idl.py"))
523 for directory in poaList + npoaList: 523 for directory in poaList + npoaList:
524 fileList += Utilities.direntries(directory, True, "*.py") 524 fileList += Utilities.direntries(directory, True, "*.py")
525 for file in fileList: 525 for file in fileList:
526 self.project.appendFile(file) 526 self.project.appendFile(file)
527 if not self.noDialog and not ui.notificationsEnabled(): 527 ui.showNotification(
528 E5MessageBox.information( 528 UI.PixmapCache.getPixmap("corba48"),
529 self, 529 self.tr("Interface Compilation"),
530 self.tr("Interface Compilation"), 530 self.tr(
531 self.tr( 531 "The compilation of the interface file was"
532 "The compilation of the interface file was" 532 " successful."))
533 " successful."))
534 else:
535 ui.showNotification(
536 UI.PixmapCache.getPixmap("corba48"),
537 self.tr("Interface Compilation"),
538 self.tr(
539 "The compilation of the interface file was"
540 " successful."))
541 else: 533 else:
542 if not self.noDialog: 534 ui.showNotification(
543 E5MessageBox.information( 535 UI.PixmapCache.getPixmap("corba48"),
544 self, 536 self.tr("Interface Compilation"),
545 self.tr("Interface Compilation"), 537 self.tr(
546 self.tr( 538 "The compilation of the interface file failed."),
547 "The compilation of the interface file failed.")) 539 timeout=0)
548 else:
549 ui.showNotification(
550 UI.PixmapCache.getPixmap("corba48"),
551 self.tr("Interface Compilation"),
552 self.tr(
553 "The compilation of the interface file failed."))
554 self.compileProc = None 540 self.compileProc = None
555 541
556 def __compileIDL(self, fn, noDialog=False, progress=None): 542 def __compileIDL(self, fn, noDialog=False, progress=None):
557 """ 543 """
558 Private method to compile a .idl file to python. 544 Private method to compile a .idl file to python.

eric ide

mercurial