Eclipse external tool for Qt .ui to .py with pyuic

后端 未结 3 1062
温柔的废话
温柔的废话 2020-12-19 10:49

I use PyDev in Eclipse with the Qt integration. With an external tool I can create python source in a .py from a qt .ui file. This is the external tool: http://permalink.gma

3条回答
  •  北海茫月
    2020-12-19 11:14

    In the interests of maintaining the cross-platform nature of Eclipse, I've knocked up a DOS equivalent of platinummonkey's bash script. It's not quite so robust, but it does the job:

    @echo off
    set pyUICCommand="pyuic"
    set fname=%1
    set fname=%fname:.ui=.py%
    %pyUICCommand% -o %fname% %1
    

提交回复
热议问题