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.
CheckBox is a specific two-state button that can be either checked or unchecked.
To work with the Checkbox you first have to import Checkbox from the module which consists all featuers, functions of the checkbox i.e.
from kivy.uix.checkbox import CheckBox
Basic Approach to follow while creating Checkbox using .kv file : 1) import kivy 2) import kivyApp 3) import BoxLayout 4) import Checkbox 5) set minimum version(optional) 6) Extend the container class 7) set up .kv file : 9) Return layout 10) Run an instance of the class
Now the program of How to create Checkbox in Kivy using .kv file:
sample.kv file of the code.
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.
- Create a GUI to convert CSV file into excel file using Python
- Python | Create a stopwatch using clock object in kivy using .kv file
- Python | Checkbox widget in Kivy
- reStructuredText | .rst file to HTML file using Python for Documentations
- Python | Create and write on excel file using xlsxwriter module
- Python | Create Box Layout widget using .kv file
- Create an empty file using Python
- Create a Credential file using Python
- Create Inverted Index for File using Python
- PyQt5 – Stop checking in CheckBox
- PyQt5 – Setting unchecked CheckBox indicator background color on mouse hover
- PyQt5 – Setting unchecked CheckBox indicator background color on click
- PyQt5 – Different curved Indicator corner in CheckBox
- PyQt5 – Round indicator of CheckBox
- PyQt – Padding of Checkbox
- PyQt5 - Setting CheckBox indicator background color when it is pressed
- PyQt5 – Setting background color of CheckBox indicator when mouse hover
- PyQt5 – How to set background image of CheckBox indicator when mouse hover
- PyQt5 – Set skin to CheckBox when mouse hover
- PyQt5 – Set Skin to unchecked CheckBox when pressed
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.