pyqt text not centered on button python code example Example: qpushbutton text alignment text-align:left;