mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
16 lines
322 B
Python
16 lines
322 B
Python
from textual.app import App, ComposeResult
|
|
from textual.widgets import Static
|
|
|
|
TEXT = """\
|
|
Here is a [@click='app.bell']link[/] which you can click!
|
|
"""
|
|
|
|
|
|
class LinksApp(App):
|
|
def compose(self) -> ComposeResult:
|
|
yield Static(TEXT)
|
|
yield Static(TEXT, id="custom")
|
|
|
|
|
|
app = LinksApp(css_path="links.css")
|