test-kivy-app/kivy_venv/share/kivy-examples/guide/designwithkv/controller.kv

17 lines
350 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
#:kivy 1.0
<Controller>:
label_wid: my_custom_label
BoxLayout:
orientation: 'vertical'
padding: 20
Button:
text: 'My controller info is: ' + root.info
on_press: root.do_action()
Label:
id: my_custom_label
text: 'My label before button press'