mirror of https://github.com/kivy/kivy.git
add possibility to read rst document with python -m kivy.uix.rst <docname.rst>
This commit is contained in:
parent
e9fbb48463
commit
abfeb2bc3c
|
@ -1017,3 +1017,7 @@ class _Visitor(nodes.NodeVisitor):
|
|||
self.root.colors.get(name, self.root.colors['paragraph']),
|
||||
text)
|
||||
|
||||
if __name__ == '__main__':
|
||||
from kivy.base import runTouchApp
|
||||
import sys
|
||||
runTouchApp(RstDocument(source=sys.argv[1]))
|
||||
|
|
Loading…
Reference in New Issue