Are there programs that convert .ui files to .py for you? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Are there programs that convert .ui files to .py for you? (/thread-20838.html) |
Are there programs that convert .ui files to .py for you? - Mocap - Sep-02-2019 I'm trying to convert .ui files to .py files but I'm experiencing tremendous frustration in doing it manually. I've searched Google and I'm not having any luck finding such a program. I want to just upload my .ui files onto a program that turns them into .py files for me. Does such a thing exist? RE: Are there programs that convert .ui files to .py for you? - Axel_Erfurt - Sep-02-2019 pyuic4 input.ui -o output.py or pyuic5 input.ui -o output.py Quote:Options: RE: Are there programs that convert .ui files to .py for you? - Mocap - Sep-02-2019 (Sep-02-2019, 09:58 AM)Axel_Erfurt Wrote: I'm being told it's invalid syntax. RE: Are there programs that convert .ui files to .py for you? - Axel_Erfurt - Sep-02-2019 go to your terminal If you have Linux or OSX you can check if pyuic5 is installed which pyuic5 adjust 'myfolder' to the path of your folder and myfile to the name of your file cd myfolder pyuic5 -x myfile.ui -o myfile.py
RE: Are there programs that convert .ui files to .py for you? - Mocap - Sep-02-2019 (Sep-02-2019, 08:00 PM)Axel_Erfurt Wrote: go to your terminal eh, nevermind. I'm not cut out for programming at all. RE: Are there programs that convert .ui files to .py for you? - Axel_Erfurt - Sep-03-2019 You do not necessarily have to transform it. You can load the ui file in your project. How to Import a PyQt5 .ui File in a Python GUI RE: Are there programs that convert .ui files to .py for you? - Denni - Sep-03-2019 Or even better do not use a UI file at all adding garbage code to a program functional or not is never really a good idea especially since making that UI code via normal pyqt methods is just as easy and is a whole lot easier to work with later on when you inevitably need to make adjustments or modifications to it. If you need help with doing this just holler out be more than happy to guide you in it otherwise enjoy the pain that dealing with garbage code is going to bring you. |