Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyqt #change #button #color
ADD COMMENT
Topic
Name
4+6 =