File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
print ('imported os' )
5
5
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' ))
10
6
11
7
print ('this dir is' , os .path .abspath (os .curdir ))
12
8
13
9
print ('contents of this dir' , os .listdir ('./' ))
14
10
15
- with open ('./lib/python2.7/site-packages/kivy/app.pyo' , 'rb' ) as fileh :
16
- print ('app.pyo size is' , len (fileh .read ()))
17
-
18
11
import sys
19
12
print ('pythonpath is' , sys .path )
20
13
37
30
38
31
kv = '''
39
32
#:import Metrics kivy.metrics.Metrics
33
+ #:import sys sys
40
34
41
35
<FixedSizeButton@Button>:
42
36
size_hint_y: None
65
59
markup: True
66
60
text: '[b]Kivy[/b] on [b]SDL2[/b] on [b]Android[/b]!'
67
61
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)
68
70
Widget:
69
71
size_hint_y: None
70
72
height: 20
85
87
Widget:
86
88
size_hint_y: None
87
89
height: 1000
88
- on_touch_down: print 'touched at', args[-1].pos
90
+ on_touch_down: print( 'touched at', args[-1].pos)
89
91
90
92
<ErrorPopup>:
91
93
title: 'Error'
You can’t perform that action at this time.
0 commit comments