Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templex exploration #189

Closed
wants to merge 49 commits into from
Closed

Templex exploration #189

wants to merge 49 commits into from

Conversation

tbrlpld
Copy link
Owner

@tbrlpld tbrlpld commented Sep 9, 2023

No description provided.

It's just nicer to look at components when they don't touch the window border, which
they never will in a real use.
This is so that a title without an image will not use the margin that is used to create
the gap between the image and the text
The decorator now adds a method to the dataclass that handles the rendering logic. This
is only done when no rendering method exists yet.

This allows for completely custom rendering logic to be added.

I find, this also reduces the logic and the complexity of the "templex" pattern, because
we can work with fewer moving pieces.
This is just for testing things. I am currently no using it.
It does not really help... the dataclass decorator needs to be added to the specific
class to make mypy understand the arguments.

See also:
https://mypy.readthedocs.io/en/stable/additional_features.html#caveats-known-issues
@tbrlpld tbrlpld closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant