From eb7e03866d67cd34afd136a7e36403b08d208d28 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 8 Dec 2022 18:02:01 -0500 Subject: Browset: Create browser toolbar --- browset.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 browset.py (limited to 'browset.py') 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() + -- cgit 1.4.1