Tutorial by Examples

Windows There are two options how to install Kivy: First ensure python tools are up-to-date. python -m pip install --upgrade pip wheel setuptools Then install the basic dependencies. python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew Although Kivy already has p...
The following example creates a canvas with 2 points and 1 line in between. You will be able to move the point and the line around. from kivy.app import App from kivy.graphics import Ellipse, Line from kivy.uix.boxlayout import BoxLayout class CustomLayout(BoxLayout): def __init__(se...
The following code illustrates how to make 'hello world' app in kivy.To run this app in ios and android save it as main.py and use buildozer. from kivy.app import App from kivy.uix.label import Label from kivy.lang import Builder Builder.load_string(''' <SimpleLabel>: text: 'Hello ...
The following code illustrates how to do simple popup with Kivy. from kivy.app import App from kivy.uix.popup import Popup from kivy.lang import Builder from kivy.uix.button import Button Builder.load_string(''' <SimpleButton>: on_press: self.fire_popup() <SimplePopup>: ...
from kivy.app import App from kivy.lang import Builder from kivy.uix.button import Button items = [ {"color":(1, 1, 1, 1), "font_size": "20sp", "text": "white", "input_data": ["some","random","data&q...
Most kivy apps start with this structure: from kivy.app import App class TutorialApp(App): def build(self): return TutorialApp().run() There is several way to go from here : All the codes below (except example 1 and 3) have the same widget and similar features, but show diffe...

Page 1 of 1