first commit
This commit is contained in:
commit
417e54da96
5696 changed files with 900003 additions and 0 deletions
Binary file not shown.
20
kivy_venv/share/kivy-examples/kv/ids/id_in_kv/id_in_kv.py
Normal file
20
kivy_venv/share/kivy-examples/kv/ids/id_in_kv/id_in_kv.py
Normal 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()
|
11
kivy_venv/share/kivy-examples/kv/ids/id_in_kv/test.kv
Normal file
11
kivy_venv/share/kivy-examples/kv/ids/id_in_kv/test.kv
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue