support pyside and pyqt4