You can access the Qt constants via QtCore, e.g. QtCore.Qt.AlignRight.