first commit

This commit is contained in:
Yura 2024-09-15 15:12:16 +03:00
commit 417e54da96
5696 changed files with 900003 additions and 0 deletions

View file

@ -0,0 +1,20 @@
'''
The use of id in KV
===================
This small example shows how to refer from one widget
to another within KV.
'''
import kivy
kivy.require('1.8.0')
from kivy.app import App
class TestApp(App):
pass
if __name__ == '__main__':
TestApp().run()

View file

@ -0,0 +1,11 @@
#:kivy 1.8.0
BoxLayout:
orientation: 'vertical'
TextInput:
# setting the id of the widget
id: my_id
text: 'The text of the label is set within kivy'
Label:
# showing the text of the textinput by referring on the id
text: my_id.text