pyqt5 change window color code example Example: pyqt5 change button color self.pushButton.setStyleSheet("background-color: red")