Python-Qt problem with pyuic4

ici iltchevi at gmail.com
Thu Sep 24 07:15:52 CEST 2009


On Sep 24, 4:45 am, Xavier Lapointe <xl.mailingl... at gmail.com> wrote:
> Hello,
>
> Let's suppose you're on Windows.
>
> If pyuic4 can't be found, you can specified the direct path:
> C:\Python26\pyuic4.bat -o Drive:\your\Path\ui_myGUI.py -x
> Drive:\your\Path\myGUI.ui
> You might need to replace the Python26 with your own version if it
> differs...
>
> Cheers

Part of one of my projects: build_ui.cmd
[code]
SET PYUIC4="c:\Python25\Lib\site-packages\PyQt4\pyuic4.bat"
SET PYRCC4="c:\Python25\Lib\site-packages\PyQt4\pyrcc4.exe"

C:
CD "C:\Projects\python\PyQT\MmicLogs\gui"

CALL %PYUIC4% -x -d -o main_ui.py ui\main.ui
CALL %PYUIC4% -x -d -o document_ui.py ui\document.ui
CALL %PYUIC4% -x -d -o pnadata_ui.py ui\pnadata.ui

%PYRCC4% -o main_rc.py ui\main.qrc

@PAUSE
[/code]



More information about the Python-list mailing list