Capsule shape is basically shape which consist of one rectangle and two semi circle is connected to both the ends, in this tutorial we will see how to create these shaped button.
Below is normal Push button vs capsule shaped push button.
In order to create capsule shape button we have to do the following steps :
1. Create a button.
2. Resize the button to make it rectangle.
3. Set the radius of button using style sheet to half of height.
Note : If the button will not be rectangle it will become circle.
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.