579 print('Error: {0}'.format(msg)) |
579 print('Error: {0}'.format(msg)) |
580 exit(1) |
580 exit(1) |
581 print("Found PyQt") |
581 print("Found PyQt") |
582 |
582 |
583 try: |
583 try: |
584 from PyQt4 import Qsci |
584 from PyQt4 import Qsci # __IGNORE_WARNING__ |
585 except ImportError as msg: |
585 except ImportError as msg: |
586 print("Sorry, please install QScintilla2 and") |
586 print("Sorry, please install QScintilla2 and") |
587 print("it's PyQt4 wrapper.") |
587 print("it's PyQt4 wrapper.") |
588 print('Error: {0}'.format(msg)) |
588 print('Error: {0}'.format(msg)) |
589 exit(1) |
589 exit(1) |
671 try: |
671 try: |
672 from PyQt4.uic import compileUiDir |
672 from PyQt4.uic import compileUiDir |
673 except ImportError: |
673 except ImportError: |
674 from PyQt4.uic import compileUi |
674 from PyQt4.uic import compileUi |
675 |
675 |
676 def compileUiDir(dir, recurse = False, map = None, **compileUi_args): |
676 def compileUiDir(dir, recurse = False, map = None, # __IGNORE_WARNING__ |
|
677 **compileUi_args): |
677 """ |
678 """ |
678 Creates Python modules from Qt Designer .ui files in a directory or |
679 Creates Python modules from Qt Designer .ui files in a directory or |
679 directory tree. |
680 directory tree. |
680 |
681 |
681 Note: This function is a modified version of the one found in PyQt4. |
682 Note: This function is a modified version of the one found in PyQt4. |