KVLang Series – 1

KVLang Series – 1

← Previous              Next →

Hello World Label Widget


  • .kv file
  • .py file
  • screenshot of output


Here is the .kv == KVLang file for our hello world. It generates a GIGANTIC window containing a Kivy Builtin Label that says, “Hello, world.”

    text: 'Hello, world.'


Here is a SIMPLE and what I believe is the MINIMAL, MOST GENERIC, python file to show our KVLang window. Hopefully this is a starting point template for KVLang projects.

This is adapted from:

''' 0001_helloWorld.py 
A simple, general starting point Python template for KVLang projects.
import kivy
kivy.require('1.8.0') # replace with your current kivy version !

from kivy.app import App
from kivy.lang import Builder

class MyApp(App):

    def build(self):
        self.root = Builder.load_file('0001_helloWorld.kv')
        return self.root

if __name__ == '__main__':

0001_helloWorld ScreenShot

Here is what this looks like run on Windows XP. In Pixels, it has:

  • width: 808
  • height: 634

Alt 0001_helloWorld.png


#examples, #gui, #kivy, #kvlang, #python, #tutorial