Added Qt5 UI compiler script

This commit is contained in:
JayPiKay 2017-10-27 14:29:09 +02:00
parent ab837b19cb
commit aa2e62f38d
1 changed files with 11 additions and 0 deletions

11
compileui.py Normal file
View File

@ -0,0 +1,11 @@
#! /usr/bin/env python3
from PyQt5.uic import compileUi
Forms = (('main.ui', 'MuleAnalyzerUI.py'),)
for ui_input, output_filename in Forms:
print('Compiling "{}"...'.format(ui_input))
with open(output_filename, 'w+') as output:
compileUi(ui_input, output)
print('... Form built and written to: "{}".'.format(output_filename))