'Pyuic4' is not recognized as an internal external command

前端 未结 4 1473
面向向阳花
面向向阳花 2021-01-18 04:31

Im trying to compile a ui file by using Pyuic, but i can\'t get it to work... Every time i try using the command

pyuic4 -o OutFile_ui.py InFile.ui

4条回答
  •  庸人自扰
    2021-01-18 05:29

    In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.

    1. Go to python\Lib\site-package from command prompt.
    2. type pyuic4.bat -x file_location\file.ui -o file_location\file.py then Enter

提交回复
热议问题