-
Notifications
You must be signed in to change notification settings - Fork 1
/
kivy.txt
62 lines (44 loc) · 919 Bytes
/
kivy.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
def func(a,b,c):
sos='...---...'
for i in sos
from kivy.app import App
>>> app=App.get_running_app()
>>> nav=app.root
>>> window=nav.parent
>>> window.remove_widget(nav)
>>> from kivy.uix.button import Button
>>> mybut=Button(text="test")
>>> window.add_widget(mybut)
mybox = Builder.load_string("""
BoxLayout:
source:''
Image:
source: root.source
Button:
text: 'hello'myimg
""")
window.add_widget(mybox)
myimg=Builder.load_string("""
AsyncImage
source:'icon.png'
""")
windowwindow.add_widget(myimg)
mysctr=Builder.load_string("""
Scatter
size:img.size
AsyncImage
size:1024,768
source:'icon.png'
""")
window.add_widget(mysctr)
from kivy.app import App
app=App.get_running_app()
nav=app.root
window=nav.parent
window.remove_widget(nav)
...........................................................
mybutton=Builder.load_string("""
Button
on_press:flash.on()
on_release:falsh.off()
""")