M
M
Max Antonov2017-03-24 22:48:33
Python
Max Antonov, 2017-03-24 22:48:33

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

2 answer(s)
M
Max Antonov, 2017-03-25
@Cialkowsky

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

O
Oleh Last, 2021-12-10
@Oleh_Lastovetskyi

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 question

Ask a Question

731 491 924 answers to any question