Download testbed/Textualize__textual/sandbox/will/offset.py from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/Textualize__textual/sandbox/will/offset.py
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/Textualize__textual/sandbox/will/offset.py
-
curl -L -o offset.py https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/Textualize__textual/sandbox/will/offset.py
375 Bytes
| from textual.app import App, ComposeResult | |
| from textual.containers import Vertical | |
| from textual.widgets import Static | |
| class OffsetExample(App): | |
| def compose(self) -> ComposeResult: | |
| yield Vertical(Static("Child", id="child"), id="parent") | |
| yield Static("Tag", id="tag") | |
| app = OffsetExample(css_path="offset.css") | |
| if __name__ == "__main__": | |
| app.run() | |