commiting in case the kivy trial fails

This commit is contained in:
shockrah
2020-03-16 19:36:10 -07:00
parent 71e9d8adad
commit 40ca9a9674
424 changed files with 24252 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