Skip to content

Commit c707e07

Browse files
committed
Updated testapp main.py
1 parent 9bcdb5d commit c707e07

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

testapps/testapp/main.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33
import os
44
print('imported os')
55

6-
print('contents of ./lib/python2.7/site-packages/ etc.')
7-
print(os.listdir('./lib'))
8-
print(os.listdir('./lib/python2.7'))
9-
print(os.listdir('./lib/python2.7/site-packages'))
106

117
print('this dir is', os.path.abspath(os.curdir))
128

139
print('contents of this dir', os.listdir('./'))
1410

15-
with open('./lib/python2.7/site-packages/kivy/app.pyo', 'rb') as fileh:
16-
print('app.pyo size is', len(fileh.read()))
17-
1811
import sys
1912
print('pythonpath is', sys.path)
2013

@@ -37,6 +30,7 @@
3730

3831
kv = '''
3932
#:import Metrics kivy.metrics.Metrics
33+
#:import sys sys
4034
4135
<FixedSizeButton@Button>:
4236
size_hint_y: None
@@ -65,6 +59,14 @@
6559
markup: True
6660
text: '[b]Kivy[/b] on [b]SDL2[/b] on [b]Android[/b]!'
6761
halign: 'center'
62+
Label:
63+
height: self.texture_size[1]
64+
size_hint_y: None
65+
text_size: self.size[0], None
66+
markup: True
67+
text: sys.version
68+
halign: 'center'
69+
padding_y: dp(10)
6870
Widget:
6971
size_hint_y: None
7072
height: 20
@@ -85,7 +87,7 @@
8587
Widget:
8688
size_hint_y: None
8789
height: 1000
88-
on_touch_down: print 'touched at', args[-1].pos
90+
on_touch_down: print('touched at', args[-1].pos)
8991
9092
<ErrorPopup>:
9193
title: 'Error'

0 commit comments

Comments
 (0)