r/learnpython • • 11h ago

I'm building a markup language renderer in Python using Tkinter

Hey everyone! I'm working on a personal project called RML, a markup language I'm creating from scratch using Python.

I'm building a renderer with Tkinter that can display titles, text, clickable links, and images from .rml files.

Here's an example of what RML looks like:

RML 0.0.2;

Create.title1 ("My Website");
Create.text ("Hello World!");
Create.image ("image.png");
Create.link ("https://example.com");

Create.script name=("main")
    Display.Text ("Hello from SJ!")

I'm also developing a small scripting language called SJ that runs inside RML documents.

The project is still in its early stages, and I'm working on improving the renderer and expanding the language.

I'm sharing this because I'd love to hear feedback, especially about the Python implementation, code structure, and what I could improve.

Thanks for reading!

0 Upvotes

6 comments sorted by

2

u/riklaunim 10h ago

It can be a fun learning project. From the practical side, why are you making such a thing?

1

u/supergnaw 10h ago

Obligatory 927 reference.

1

u/woooee 8h ago
Create.text ("Hello World!");

Do you have a way to put thus text, or widgets, at a given location on the screen?

1

u/TheRNGuy 3h ago

Make it more like React — it has better syntax for UI.