/usr/share/kivi-examples/widgets/textalign.kv is in python-kivy-examples 1.7.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 | #:kivy 1.0
<BoundedLabel>:
canvas.before:
Color:
rgb: 1, 0, 0
Rectangle:
pos: self.pos
size: self.size
<Selector>:
Label:
pos_hint: {'top': 1}
size_hint_y: None
height: 50
font_size: 16
text: 'Demonstration of text valign and halign'
BoxLayout:
size_hint_y: None
height: 50
ToggleButton:
halign: 'center'
group: 'case'
text: 'label.text_size =\n(None, None)'
on_release: root.app.select(0)
state: 'down'
ToggleButton:
halign: 'center'
group: 'case'
text: 'label.text_size =\n(label.width, None)'
on_release: root.app.select(1)
ToggleButton:
halign: 'center'
group: 'case'
text: 'label.text_size =\n(None, label.height)'
on_release: root.app.select(2)
ToggleButton:
halign: 'center'
group: 'case'
text: 'label.text_size =\n(label.width, label.height)'
on_release: root.app.select(3)
|