;
KIVY DESkTOP
The basic kivy in Python
from kivy.app import App
class MainWidget(Widget):
pass
class BoxLayoutExample(BoxLayout):
pass
"""
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.orientation='vertical'
b1=Button(text='A')
b2=Button(text='B')
b3=Button(text='C')
self.add_widget(b1)
self.add_widget(b2)
self.add_widget(b3)
"""
class MainWidget(Widget):
pass
class TheLabApp(App):
pass
TheLabApp().run()
KIVY File
the kv file name must be equal to run method TheLabApp().run() TheLab.kv so without App at the end
at the top of the kv file put the Def that will run
BoxLayoutExample:
\