PyQt5 – Create circular Push Button
In this article we will see how to create circular push button. By default, when we create a push button it is in rectangular form although we can also change it size to square.
In order to create circular button we have to do following steps: 1. Create a push button. 2. Change its size to make it square. 3. Set radius of button to half of length or square button.
Note : If we set radius greater than the half of the length then no change will occur as that shape would not be possible.
Syntax : button.setStyleSheet(“border-radius : 50;”) Argument : It takes string as argument. Action performed : It sets the radius of button.
My Personal Notes arrow_drop_up
Please Login to comment...