from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
Kivy provides a design language specifically geared towards easy and scalable GUI Design. The language makes it simple to separate the interface design from the application logic, adhering to the separation of concerns principle.
There are two ways to load Kv code into your application:
MyApp -> my.kv
Builder.load_file('path/to/file.kv')
Layouts are containers used to arrange widgets in a particular manner.