I tried kivy's reStructuredText renderer

What i did

It seems that Kivy can render RST, so I tried it.

Source code

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     

Execution result

rst.PNG

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

I tried kivy's reStructuredText renderer
I tried Kivy's mapview
I tried scraping
I tried PyQ
I tried AutoKeras
I tried django-slack
I tried Django
I tried spleeter
I tried cgo
I tried using parameterized
I tried using argparse
I tried using mimesis
I tried using anytree
I tried competitive programming
I tried running pymc
I tried ARP spoofing
I tried using aiomysql
I tried using Summpy
I tried Python> autopep8
I tried using coturn
I tried using Pipenv
I tried using matplotlib
I tried using "Anvil".
I tried using Hubot
I tried using ESPCN
I tried PyCaret2.0 (pycaret-nightly)
I tried using openpyxl
I tried deep learning
I tried AWS CDK!
I tried using Ipython
I tried using PyCaret
I tried using cron
I tried using face_recognition
I tried using Jupyter
I tried using PyCaret
I tried moving EfficientDet
I tried shell programming
I tried using doctest
I tried Python> decorator
I tried running TensorFlow
I tried Auto Gluon
I tried using folium
I tried using jinja2
I tried AWS Iot
I tried Bayesian optimization!
I tried using folium
I tried using time-window
I tried fp-growth with python
I tried AutoGluon's Image Classification
I tried to learn PredNet
I tried Learning-to-Rank with Elasticsearch!
[I tried using Pythonista 3] Introduction
I tried using easydict (memo).
I tried to organize SVM.
I tried face recognition using Face ++
I tried clustering with PyCaret
I tried using BigQuery ML
I tried "K-Fold Target Encoding"
I tried to implement PCANet
I tried using Amazon Glacier
[I tried] Nand2 Tetris Chapter 6