/usr/share/kivy-examples/widgets/rstexample.py 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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | '''
QuickReference for Rst
======================
This is a markup example: [b]Hello[/b] [i]world[/i]
And if i really want to write my code: &bl; Hello world &br;
And video widget
----------------
.. video:: softboy.avi
Inline Markup
-------------
- *emphasis*
- **strong emphasis**
- `interpreted text`
- ``inline literal``
- reference_
- `phrase reference`_
- anonymous__
- _`inline internal target`
.. _top:
Internal crossreferences, like example_, or bottom_.
Image
-----
Woot!
What about a little image ?
.. image:: kivy/data/logo/kivy-icon-256.png
Grid
----
+------------+------------+-----------+
| Header 1 | Header 2 | Header 3 |
+============+============+===========+
| body row 1 | column 2 | column 3 |
+------------+------------+-----------+
| body row 2 | column 2 | column 3 |
+------------+------------+-----------+
| body row 3 | column 2 | column 3 |
+------------+------------+-----------+
Term list
---------
:Authors:
Tony J. (Tibs) Ibbs,
David Goodger
(and sundry other good-natured folks)
.. _example:
:Version: 1.0 of 2001/08/08
:Dedication: To my father.
Definition list
---------------
what
Definition lists associate a term with a definition.
how
The term is a one-line phrase, and the definition is one or more paragraphs or
body elements, indented relative to the term. Blank lines are not allowed
between term and definition.
Block quotes
------------
Block quotes are just:
Indented paragraphs,
and they may nest.
Admonitions
-----------
.. warning::
This is just a Test.
.. note::
And this is just a note. Let's test some literal::
$ echo 'Hello world'
Hello world
Ordered list
------------
#. My item number one
#. My item number two with some more content
and it's continuing on the second line?
#. My third item::
Oh wait, we can put code!
#. My four item::
No way.
.. _bottom:
Go to top_'''
from kivy.uix.rst import RstDocument
from kivy.app import App
class RstApp(App):
def build(self):
return RstDocument(text=__doc__)
if __name__ == '__main__':
RstApp().run()
|