/usr/share/kivy-examples/widgets/textalign.kv 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 | #:kivy 1.0
<BoundedLabel>:
canvas.before:
Color:
rgb: 1, 0, 0
Rectangle:
pos: self.pos
size: self.size
<Selector>:
grid: _grid
Label:
pos_hint: {'top': 1}
size_hint_y: None
height: 50
font_size: 16
text: 'Demonstration of text valign and halign'
GridLayout:
id: _grid
rows: 3
cols: 3
spacing: 10
size_hint: (None, None)
pos_hint: {'center_x': .5, 'center_y': .5}
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)
|