python gui kivy code example

Example 1: kivy

"""
Kivy is a cross-platform python library for developing apps across many 
devices, including:

1.  IOS
2. Android
3. Windows
4. Linux
5. MacOS

Even better for developers - It's open source!
"""

Example 2: how to make a gui with kivy

class FirstKivy(App):

    def build(self):

        return Label(text="Hello Kivy!")

Example 3: how to make a gui with kivy

from kivy.uix.label import Label

Example 4: kivy python

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='My Name is Vivek')

TestApp().run()