Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
Classical user interface widgets, ready to be assembled to create more complex widgets. There are multiple UX Widgets such as Label, Button, CheckBox, Image, Slider, Progress Bar, Text Input, Toggle button, Switch.
- Label: The Label widget is for rendering text. It supports ascii and unicode strings.
- Button: The Button is a Label with associated actions that are triggered when the button is pressed (or released after a click/touch).
- CheckBox: CheckBox is a specific two-state button that can be either checked or unchecked.
- Image: The Image widget is used to display an image.
- Slider: The Slider widget looks like a scrollbar. It supports horizontal and vertical orientations, min/max values and a default value.
- Progress Bar: ProgressBar widget is used to visualize the progress of some task.
- TextInput: The TextInput widget provides a box for editable plain text.
- Toggle Button: The ToggleButton widget acts like a checkbox. When you touch or click it, the state toggles between ‘normal’ and ‘down’ (as opposed to a Button that is only ‘down’ as long as it is pressed).
- Switch: The Switch widget is active or inactive, like a mechanical light switch.
Here, we are going to use almost all these UX widgets So that you can understand how to use them in a single code.
Basic Approach: 1) import kivy 2) import kivyApp 3) import window 4) Set minimum version(optional) 5) Create the App class 6) Create the .kv file 7) Make the run method/ run the App
Implementation of the Approach:
- Python | Multiple Sliders widgets Controlling Background Screen or WindowColor in Kivy
- Widgets in ipython - Numeric Widgets
- Python | How to use Multiple kv files in kivy
- PyQt5 QDockWidget – Setting Multiple Widgets Inside it
- Python Tkinter | Create LabelFrame and add widgets to it
- Python | Layouts in layouts (Multiple Layouts) in Kivy
- Use image as a button in kivy
- Creating Custom Widgets in PyQt5
- Python | Kivy .kv File
- Python | Ellipse (different polygons) in Kivy
- Python | Scrollview widget in kivy
- Python | Carousel Widget In Kivy
- Python | Float Layout in Kivy
- Python | Make a simple window using kivy
- GridLayouts in Kivy | Python
- Python | Working with buttons in Kivy
- Python | Add Label to a kivy window
- Python | Button Action in Kivy
- Python | Window size Adjustment in Kivy
- Python | BoxLayout widget in Kivy
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.