try to be compatible with both PySide and PyQt4 ...
the uic stuff is untested and probably buggy
#130