Example on how to use PySide to create a Python GUI.
You need to install PySide. The best way is with pip. For bonus points, use a virtualenv too.
pip install virtualenv
virtualenv fruit-example
. fruit-example/bin/activate
pip install PySide
If you are on OSX you will need to install Qt first.
brew install qt
To modify the ui file, you need to install QtCreator from qt-project.org.
Run pyside-uic
to convert the XML form designer file generated by QtCreator into a python PySide compatible class.
pyside-uic fruit.ui -o fruit_ui.py
python fruit.py