test-kivy-app/kivy_venv/share/kivy-examples/demo/showcase/data/screens/rstdocument.kv

25 lines
696 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
ShowcaseScreen:
name: 'RstDocument'
fullscreen: True
on_parent: if not args[1]: textinput.focus = False
GridLayout:
cols: 2 if root.width > root.height else 1
spacing: '8dp'
TextInput:
id: textinput
text:
('.. _top:\n'
'\n'
'Hello world\n'
'===========\n'
'\n'
'This is an **emphased text**, *italic text*, ``interpreted text``.\n'
'And this is a reference to top_::\n'
'\n'
' $ print("Hello world")\n')
RstDocument:
text: textinput.text