In this article we will see how to create dotted border to an Push Button. Below is how normal button vs dotted border looks like.
In order to do this we have to change the border style from solid to dotted this can be done using style sheet.
Syntax : button.setStyleSheet(“border-style : dotted;”)
Argument : It takes string as argument.
Action performed : It will set border style to dotted.
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