align center gui pyqt5 help code example Example: qlabel alignment center python self.label.setAlignment(Qt.AlignCenter)