Answer the question
In order to leave comments, you need to log in
How to convert from ui to py?
Getting familiar with PyQt. I put the form in QtDesigner. I can't figure out how to convert from ui to py to finish the form. From what I googled, the converter is a certain pyuic, but for me it is located in the wrong folders as in the examples and has the .py extension, not .bat. How to be, advise good people.
Answer the question
In order to leave comments, you need to log in
The answer is still found: pyuic5 name.ui -o name.py
- run from the folder with the ui file in cmd
and then observe the script in the same folder
It still didn't work for me.
Having figured it out, it was not difficult to understand that for some reason the file was not displayed in the directory, although before that it had entered the folder with the file via cmd. Perhaps my version will help someone:
pyuic5 D:\folder\name.ui -o D:\folder\name\name.py
You just need to add the directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question