Friday, 8 June 2018

Kivy

I hold a real passion for developing GUI's using Kivy, its ability to be truly multi platform. I have used Ubuntu, Windows and Mac to develop code for Raspberry Pi that just works on the other platforms.

Where Kivy really lacks is its dependency on other packages with specific version such as Cython (love Cython) All of these programs can be overcome with a little persistence.

A simple 'Hello World' Kivy example:

import kivy

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

    def build(self):
        return Label(text='Hello world')

if __name__ == '__main__':
    MyApp().run()

Go on give it a go!




No comments:

Post a Comment

Classes

My favourite subject, seriously! A simple class class MyClass(): pass There are two types of class variables, class variables and Inst...