/usr/share/kivy-examples/demo/showcase/data/screens/screenmanager.kv is in python-kivy-examples 1.8.0+dfsg-2.1.
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 | #:import Factory kivy.factory.Factory
ShowcaseScreen:
name: 'ScreenManager'
fullscreen: True
BoxLayout:
size_hint_y: None
height: '48dp'
Spinner:
text: 'Default transition'
values: ('SlideTransition', 'SwapTransition', 'FadeTransition', 'WipeTransition')
on_text: sm.transition = Factory.get(self.text)()
ScreenManager:
id: sm
Screen:
name: 'screen1'
canvas.before:
Color:
rgb: .8, .2, .2
Rectangle:
size: self.size
AnchorLayout:
Button:
size_hint: None, None
size: '150dp', '48dp'
text: 'Go to screen 2'
on_release: sm.current = 'screen2'
Screen:
name: 'screen2'
canvas.before:
Color:
rgb: .2, .8, .2
Rectangle:
size: self.size
AnchorLayout:
Button:
size_hint: None, None
size: '150dp', '48dp'
text: 'Go to screen 1'
on_release: sm.current = 'screen1'
|