From aa2e62f38d2c9ab0c4fc57494671e9f95dfe8c01 Mon Sep 17 00:00:00 2001 From: JayPiKay Date: Fri, 27 Oct 2017 14:29:09 +0200 Subject: [PATCH] Added Qt5 UI compiler script --- compileui.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 compileui.py diff --git a/compileui.py b/compileui.py new file mode 100644 index 0000000..968bd3b --- /dev/null +++ b/compileui.py @@ -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))