Introduction
Kivy is a GUI tool that is platform-independent in Python. Kivy can be run on android, IOS, Linux, windows, etc. It is used to create the Android application, but this does not mean that we cannot use it on desktop applications.
If we talk about widgets that are generally rectangles, we can change their background and put some images for the normal and the downstate of the button with some properties such as background_normal and background_down, respectively. Accordingly, for rounding or shaping the corners of the button, you must know one more property of a button which is the border property.
Properties
- Background_down: It is a string property. When a button is pressed, the button's background image is used for the default graphical representation.
Syntax: background_normal: ‘normal.png’
- Background_normal: It is also a string property. But in this, When a button is not pressed, then the button's background image is used for the default graphical representation.
Syntax: backgroubd_down: ‘down.png’
- Border: It is used for border-image graphics instructions. It is used with background_down and background_normal. It can also be used for custom backgrounds. It is a List property, and the default is (16,16,16,16).
Syntax: border: 30,30,30,30 . This values in the border represents how many pixels are on the left,right,top and bottom.