I have started using PyQt together with Maya to make much richer ui’s. QT is a killer User interface development, tool and framework. PyQt is the Python bindings.

One of the tools that makes it a joy to work with PyQt is the designer application.


Only problem about PyQt is thah its a pain, to get it up and running with Maya. So here is a little tutorial. I have not done this on windows yet, but who uses that ms stuff anyways.

1. Compile and Install a Python version equal to the one Maya is using. Thats 2.4.3 for Maya 8.5 and 2.5.1 for Maya 2008


I suggest installing all of this into something like /global/usr/

$> tar xvfz Python-2.4.3.tgz
$> cd  Python-2.4.3
$> ./configure --prefix=/global/usr --enable-unicode=ucs4
$> make
$> sudo make install

2. Link site-profiles and lib-dynload to the newly install equals

$> cd /usr/autodesk/maya8.5-x64/lib/python2.4/site-packages
$> cp -rf maya/ /global/usr/lib/python2.4/site-packages/
$> cd ..
$> mv site-packages site-packages_old
$> mv lib-dynload lib-dynload_old
$> ln -s /global/usr/lib/python2.4/site-packages
$> ln -s /global/usr/lib/python2.4/lib-dynload

3. Compile and install QT


$> gunzip qt-x11-opensource-src-4.3.3.tar.gz
$> cd qt-x11-opensource-src-4.3.3/
$> ./configure --prefix=/global/usr/local
$> make
$> make install

4. Compile and install sip with newly installed Python

$> tar xvfz sip-4.7.3.tar.gz
$> cd sip-4.7.3
$> /global/usr/bin/python2.4 configure.py
$> make
$> make install

5. Compile and install PyQT with newly installed Python, Sip and QT

$> tar xvfz PyQt-x11-gpl-4.3.3.tar.gz
$> cd PyQt-x11-gpl-4.3.3/
$> /global/usr/bin/python2.4 configure.py --qmake=/global/usr/local/bin/qmake
$> make
$> make install

everything should now be working.