
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
Introduction to Kivy; A Cross-platform Python Framework
In this article, we will learn about Kivy framework and its installation. Kivy is a GUI based application interface, open-source that helps in cross-platform applications for Windows, Linux and Mac.
Installation Guide
Firstly we need to install python on pc.
After that we need to install the dependencies −
Windows −
>>> python -m pip install docutils pygments pypiwin32kivy.deps.sdl2 kivy.deps.glew >>> python -m pip install kivy.deps.gstreamer >>> python -m pip install kivy.deps.angle
Linux −
$ sudo add-apt-repository ppa:kivy-team/kivy
Installing the Kivy file
Windows −
>>> python -m pip install kivy
Linux −
>>> sudo apt-get install python3-kivy
Now let’s see how we can make a graphical user interface using Kivy −
Example
import kivy kivy.require('1.10.0') from kivy.app import App # gui interface creator from kivy.uix.button import Label # button label import statement class Sample(App): # display content on screen def build(self): # Return a label widget with Sample return Label(text ="Tutorialpoint") sample = Sample() sample.run()
Output
A new window popup will be displayed with the title of Sample containing text “Tutorialspoint” in it .
A window popup will be observed on the screen
In this manner we can use Kivy to create a GUI badsed application in Python
Conclusion
In this article, we learnt about the use of kivy framework for the creation of GUI based application.
- Related Articles
- Is Flutter a stable platform to develop cross platform application?
- How to create a directly-executable cross-platform GUI app using Python(Tkinter)?
- Python - Add Label to kivy window
- Python - AnchorLayout in Kivy
- Python Checkbox widget in Kivy?
- Python Float Layout in Kivy?
- Python - BoxLayout widget in Kivy
- Python - Button Action in Kivy
- How to add custom fonts in Kivy - Python?
- Python - Window size Adjustment in Kivy
- Python - Working with buttons in Kivy
- Introduction-to-convolutions-using-python
- Introduction To Machine Learning using Python
- Introduction to Python for Data Science
- Introduction to Data Science in Python

Advertisements