0

I am trying to automatically convert Qt designer files with .ui extensions to .py file inPycharm using an external tool created with Pyrcc5.exe script. The arguments are:

$FileName$ -o $FileNameWithoutExtension$.py

After executing the .ui file with the external tool that I created I am getting this error:

Error

The external tool named Pyuic and it's details are here:

Pyuic External Tool

I don't want to manually convert each .ui file into .py and then put it into the project directory. A solution to this error would be appreciated.

Jimit Vaghela
  • 768
  • 1
  • 8
  • 31

1 Answers1

0

I have found a very simple solution to this.

Just replace the Pyrcc5.exe with Pyuic5.exe and the put the arguments as this:

-x $FileName$ -o $FileNameWithoutExtension$.py

Jimit Vaghela
  • 768
  • 1
  • 8
  • 31
  • Instead of converting each .ui file to .py file is not suggestive for a large scale project. A better alternative I am using right now is to load the UI file from a different .py and use it there. – Jimit Vaghela Aug 06 '20 at 12:28