test-kivy-app/kivy_venv/share/kivy-examples/demo/showcase/data/screens/rstdocument.kv
2024-09-15 15:12:16 +03:00

25 lines
696 B
Plaintext

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