After creating UI with QT Designer, I would like to ask you a question about pyuic.

Asked 2 years ago, Updated 2 years ago, 141 views

Previously, I used Python IDLE when I used Python for a while. I think I will mainly use Python this time, so I deleted the editor and used the Anaconda + PyCharm environment.

Create a UI with QT Designer and use the command as follows.An attempt to convert to py form results in a pyenv error. I'm using it on Mac, but maybe it's because I didn't set the environment variable at first. I don't know exactly how to solve it.

pyuic4 Platon.ui -o myPlaton.py
or 
pyuic5 Platon.ui -o myPlaton.py

It may be a very simple problem, but I would appreciate your help.

pyqt python anaconda pyuic

2022-09-22 20:54

1 Answers

When pyqt is installed, pyuic.py is also distributed in the site-package/pyqt5/uic directory.

You can run python pyuic.py anyfile.ui -o anyfile.py.


2022-09-22 20:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.