Broken project to implement a cross-protocol browser in textual
Browset: Create browser toolbar
| -rw-r--r-- | browset.css | 6 | ||||
| -rw-r--r-- | browset.py | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/browset.css b/browset.css new file mode 100644 index 0000000..35c465e --- /dev/null +++ b/browset.css @@ -0,0 +1,6 @@ +#toolbar { + layout: grid; + grid-size: 5 1; + grid-columns: 4 4 4 4 1fr; + grid-gutter: 1; +} diff --git a/browset.py b/browset.py new file mode 100644 index 0000000..42bfec9 --- /dev/null +++ b/browset.py @@ -0,0 +1,22 @@ +from textual.app import App, ComposeResult +from textual.widgets import Input, Button +from textual.containers import Container + + +class Browset(App): + CSS_PATH = "browset.css" + def compose(self) -> ComposeResult: + yield Container( + Button("🔙"), # ⏪ + Button("🔝"), # ⏫ + Button("🔜"), # ⏩ + Button("🔄"), # 🔁 + + Input(placeholder="Enter URI"), + id="toolbar" + ) + +if __name__ == "__main__": + app = Browset() + app.run() + |