/usr/share/kivy-examples/widgets/pagelayout.py is in python-kivy-examples 1.9.1-1build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 | from kivy.base import runTouchApp
from kivy.lang import Builder
kv = '''
PageLayout:
BoxLayout:
canvas:
Color:
rgba: 216/255., 195/255., 88/255., 1
Rectangle:
pos: self.pos
size: self.size
orientation: 'vertical'
Label:
size_hint_y: None
height: 1.5 * self.texture_size[1]
text: 'page 1'
Button:
text: 'test'
on_press: print("test")
BoxLayout:
orientation: 'vertical'
canvas:
Color:
rgba: 109/255., 8/255., 57/255., 1
Rectangle:
pos: self.pos
size: self.size
Label:
text: 'page 2'
AsyncImage:
source: 'http://kivy.org/logos/kivy-logo-black-64.png'
GridLayout:
canvas:
Color:
rgba: 37/255., 39/255., 30/255., 1
Rectangle:
pos: self.pos
size: self.size
cols: 2
Label:
text: 'page 3'
AsyncImage:
source: 'http://kivy.org/slides/kivyandroid-thumb.jpg'
Button:
text: 'test'
on_press: print("test last page")
AsyncImage:
source: 'http://kivy.org/slides/kivypictures-thumb.jpg'
Widget
AsyncImage:
source: 'http://kivy.org/slides/particlepanda-thumb.jpg'
'''
if __name__ == '__main__':
runTouchApp(Builder.load_string(kv))
|