In this article we will see how to add border to Push Button. Although push button already have a border but that border is default. PyQt5 allows us to change the border of push button by using
Below is the example of push button with default border and customized border.
Syntax : button.setStyleSheet(“border :3px solid green”)
Argument : It takes string as argument
Action performed : It changes the border of the button
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.