When we create a window in PyQt5, by default, there is no special type of border to it. But we change the style, thickness as well as color of the main window by using
Below is how normal border vs styled border looks like
Syntax : self.setStyleSheet(“border : 3px dashed blue;”)
Argument: It takes string as argument.
"border : size_of_border type_of_border color_of_border;"
Action performed : It sets the border style.
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.