#embededlayout.py
from kivy.app import App
from kivy.uix.widget import Widget
class Embedlayout(Widget):
pass
class EmbedlayoutApp(App):
pass
EmbedlayoutApp().run()
------------------------
#embededlayout.kv
Embedlayout:
BoxLayout:
size: root.width, root.height
Button:
text: "A"
size_hint: .5, .5
pos_hint: {"center_y": .5}
BoxLayout:
orientation: "vertical"
spacing: "10dp"
Button:
text: "B1"
Button:
text: "B2"
Button:
text: "B3"
Label:
text: "C"
reference:
No comments:
Post a Comment