When we create label, by default, they are rectangle in shape, we cane use
resize() method to change its width and height but still it will be quadrilateral.
In this article, we will see how to create circular i.e round label. In order to do this we will first create a square label then with the help of
setStyleSheet() method change its border radius to half of length of the label, which will look like this.
Syntax : label.setStyleSheet(border-radius: 40px;”)
Argument : It takes string as argument.
Action performed : Changes the border radius of label.
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.