Transformed from PyQt to PySide