Project/ProjectInterfacesBrowser.py

changeset 536
6d8d39753c82
parent 501
5c615a85241a
child 537
72b32daeb8d6
equal deleted inserted replaced
535:4b00d7336e19 536:6d8d39753c82
12 12
13 from PyQt4.QtCore import * 13 from PyQt4.QtCore import *
14 from PyQt4.QtGui import * 14 from PyQt4.QtGui import *
15 15
16 from E5Gui.E5Application import e5App 16 from E5Gui.E5Application import e5App
17 from E5Gui import E5MessageBox
17 18
18 from .ProjectBrowserModel import ProjectBrowserFileItem, \ 19 from .ProjectBrowserModel import ProjectBrowserFileItem, \
19 ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \ 20 ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
20 ProjectBrowserInterfaceType 21 ProjectBrowserInterfaceType
21 from .ProjectBaseBrowser import ProjectBaseBrowser 22 from .ProjectBaseBrowser import ProjectBaseBrowser
448 for dir in poaList + npoaList: 449 for dir in poaList + npoaList:
449 fileList += Utilities.direntries(dir, True, "*.py") 450 fileList += Utilities.direntries(dir, True, "*.py")
450 for file in fileList: 451 for file in fileList:
451 self.project.appendFile(file) 452 self.project.appendFile(file)
452 if not self.noDialog: 453 if not self.noDialog:
453 QMessageBox.information(None, 454 E5MessageBox.information(self,
454 self.trUtf8("Interface Compilation"), 455 self.trUtf8("Interface Compilation"),
455 self.trUtf8("The compilation of the interface file was successful.")) 456 self.trUtf8("The compilation of the interface file was successful."))
456 else: 457 else:
457 if not self.noDialog: 458 if not self.noDialog:
458 QMessageBox.information(None, 459 E5MessageBox.information(self,
459 self.trUtf8("Interface Compilation"), 460 self.trUtf8("Interface Compilation"),
460 self.trUtf8("The compilation of the interface file failed.")) 461 self.trUtf8("The compilation of the interface file failed."))
461 self.compileProc = None 462 self.compileProc = None
462 463
463 def __compileIDL(self, fn, noDialog = False, progress = None): 464 def __compileIDL(self, fn, noDialog = False, progress = None):

eric ide

mercurial