Skip to content

Commit 72a1b4c

Browse files
committed
Added examples to test app
1 parent 0f12f8c commit 72a1b4c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/testapp/main.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@
2525
FixedSizeButton:
2626
text: 'test pyjnius'
2727
on_press: app.test_pyjnius()
28+
Image:
29+
keep_ratio: False
30+
allow_stretch: True
31+
source: 'colours.png'
32+
size_hint_y: None
33+
height: dp(100)
34+
Label:
35+
height: self.texture_size[1]
36+
size_hint_y: None
37+
font_size: 100
38+
text_size: self.size[0], None
39+
markup: True
40+
text: '[b]Kivy[/b] on [b]SDL2[/b] on [b]Android[/b]!'
41+
halign: 'center'
2842
Widget:
2943
size_hint_y: None
3044
height: 1000
@@ -49,7 +63,7 @@ class TestApp(App):
4963
def build(self):
5064
root = Builder.load_string(kv)
5165
Clock.schedule_interval(self.print_something, 2)
52-
Clock.schedule_interval(self.test_pyjnius, 5)
66+
# Clock.schedule_interval(self.test_pyjnius, 5)
5367
return root
5468

5569
def print_something(self, *args):

0 commit comments

Comments
 (0)