Answers for "button color pyqt5"

1

pyqt5 change button color

self.pushButton.setStyleSheet("background-color: red")
Posted by: Guest on April-23-2020
0

pyqt change button color

QPushButton button1, button2, button3;

button1.setStyleSheet("background-color: red");

button2.setStyleSheet("background-color:#ff0000;");

button3.setStyleSheet("background-color:rgb(255,0,0)");
Posted by: Guest on July-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language