diff --git a/uis/PyQtConverter.py b/uis/PyQtConverter.py new file mode 100644 index 0000000..28c91f0 --- /dev/null +++ b/uis/PyQtConverter.py @@ -0,0 +1,15 @@ +import os, easygui +from os.path import basename +slash = '/' + +start = easygui.buttonbox("Open .ui file to convert it", "Converter", ("Browse file", "Cancel")) + +if start == "Cancel": + exit() + +if start == "Browse file": + thisFile = easygui.fileopenbox(filetypes=["*.ui"]) + +filename = basename(thisFile)[:-3] + +os.system('python -m PyQt5.uic.pyuic -x ' + thisFile + " -o " + os.path.dirname(thisFile) + slash + filename + ".py") diff --git a/uis/horsy.ui b/uis/horsy.ui new file mode 100644 index 0000000..7bff7e1 --- /dev/null +++ b/uis/horsy.ui @@ -0,0 +1,31 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + 0 + 0 + 800 + 21 + + + + + + + +