pyqt5 code to change the background color of a button control code example
Example 1: pyqt5 change button color
self.pushButton.setStyleSheet("background-color: red")
Example 2: change color of text button pyqt5
setStyleSheet('QPushButton {background-color: #A3C1DA; color: red;}')