change button color pyqt 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;}')
self.pushButton.setStyleSheet("background-color: red")
setStyleSheet('QPushButton {background-color: #A3C1DA; color: red;}')