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

Text repr to display current text #3915

Open
tuncbkose opened this issue Aug 26, 2024 · 1 comment
Open

Text repr to display current text #3915

tuncbkose opened this issue Aug 26, 2024 · 1 comment

Comments

@tuncbkose
Copy link

Currently, Text objects have

def __repr__(self):
return f"Text({repr(self.original_text)})"

and similarly for SingleStringMathTex
def __repr__(self):
return f"{type(self).__name__}({repr(self.tex_string)})"

I recently made an animation that involved Transforming text objects repeatedly, during which the logging displays the original text of the objects and not their current state. This makes debugging problems slightly more work, as it can be more difficult to differentiate at what part of the scene something went wrong.

Is there a reason for the current behavior? And is there interest in changing it to display updated information? I imagine self.original_text may be changed to self.text and maybe the Transform can update tex_string itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants
@tuncbkose and others