I will write a quick explanation of the pyuic4 and pyrcc4 commands for future reference. Most tutorials simply tell you to copy some code, but no one explains exactly what you are about to do. It is quite simple actually, but beginners might still struggle with it.
The Plugin Builder generates a fairly 'empty' plugin template. The two files that are of interest to us, as we need to convert them to Python files manually, are the GUI file (.ui) and the resource file (.qrc).
Let us assume my Plugin Builder leaves me with the following files when creating a template for a plugin that I named Color Changer: color_changer_dialog_base.ui and resources.qrc.
Now, to convert these files to Python (.py) files we need to move to a console (for example, the OSGeo4W Shell).
The syntax for the GUI conversion is:
pyuic4 -o nameOfTheFileWeWantToCreate.py nameOfOurExistingFile.ui
As in:
pyuic4 -o color_changer_dialog_base.py color_changer_dialog_base.ui
And the syntax for the resource file is:
pyrcc4 -o nameOfTheFileWeWantToCreate.py nameOfOurExistingFile.qrc
As in:
pyrcc4 -o resources_rc.py resources.qrc
Of course, all rules that generally apply in GIS or programming should be considered. In your case, consider not using blank spaces in file names.
So, this:
through this:
will become this:
Best Answer
pyuic4
is part of PyQt4, which is part of OSGeo4W. In case its installer gives you a choice of what components to install, make sure you also picked pyqt4, which is short for "pythong bindings for qt4". Did QGIS not complain about python when you were using it (eg. the plugin manager)?So, if you do have PyQt4 already, you may just need to set the search path, so
pyuic4
can be found. Or in the unlikely case that the bundled version is missing this generator, install a full version from http://www.riverbankcomputing.co.uk/software/pyqt/download.