When we create border of a label, it is of same color i.e all the edges are of same color. In this article, we will see how to create multi-colored borders i.e all the edges are of different color.
In order to do this, we will use
Syntax :label.setStyleSheet("border :5px solid ;" "border-top-color : red; " "border-left-color :pink;" "border-right-color :yellow;" "border-bottom-color : green")
Argument : It takes string as argument.
Action performed : It changes the color of each edge.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course