Skip to content

[blink] tag does not work properly in Static after version 1.0.0 #5637

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

Closed
fentamin opened this issue Mar 11, 2025 · 3 comments
Closed

[blink] tag does not work properly in Static after version 1.0.0 #5637

fentamin opened this issue Mar 11, 2025 · 3 comments

Comments

@fentamin
Copy link

The bug

The [blink] tag does not work properly inside Static starting from version 2.0.0. (Platform: Windows, Python version: 3.11+)

Description

In Textual 1.0.0, the following code correctly displays blinking yellow text inside a Static widget. However, in Textual 2.0.0 and later, the text appears in plain white and does not blink.

from textual.app import App, ComposeResult
from textual.containers import Container
from textual.widgets import Static
from textual import __version__

class BlinkTestApp(App):
    def compose(self) -> ComposeResult:
        yield Container(Static(f"[blink yellow]Test blink - {__version__}[/]"))

if __name__ == "__main__":
    BlinkTestApp().run()

Expected Behavior

The text should appear in yellow and blink, as it did in version 1.0.0.

Actual Behavior

The text is displayed in plain white and does not blink.

@willmcgugan
Copy link
Collaborator

The new content system probably isn't going to support blink, as its a poor UI, IMHO. But it will still be supported through rich Text. Text.from_markup("[blink]Terrible UI")

@Textualize Textualize deleted a comment from github-actions bot Mar 11, 2025
@fentamin
Copy link
Author

Thank you for the feedback. I tested the way you suggested. Now, the text color is correct, but anyway, no blinking.
Is there a chance that it will be fixed one day? I'd like to help with it. Perhaps you can direct me a little? Which modules are responsible for the feature? I started with content.py, but probably need to check something responsible for screen refreshing.

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

No branches or pull requests

2 participants