It seems that Kivy can render RST, so I tried it.
Easy to implement because you just try it
main.py
import kivy
from kivy.uix.widget import Widget
from kivy.app import App
class textImput(Widget):
def Text(self):
pass
class editorApp(App):
def build(self):
return textImput()
editorApp().run()
KV is as follows
editor.kv
<textImput>:
BoxLayout:
orientation: 'vertical'
size: 800, 600
TextInput:
id: txt_inpt
size_hint: 1, 5
text: ''
RstDocument:
text: txt_inpt.text
size_hint: 1, 5
show_errors: True
The image is the result of pasting the Getting Started RST for the time being. The top is RST and the bottom is the result. It seems that it can be rendered. this is. Maybe convenient.
that's all I tried it.
Recommended Posts