summaryrefslogtreecommitdiff
path: root/examples/py/starter-bar/app.py
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-26 00:32:03 +0000
committerAylur <[email protected]>2024-09-26 00:32:03 +0000
commit00738c9383472b9fd83d65785215c5a97a58159f (patch)
treed9f91a890f6a01886496a58f4bc761619f5df09d /examples/py/starter-bar/app.py
parentd24e3e39526a88a00ca9e11f168d9c705a21d25a (diff)
add: python example bar
Diffstat (limited to 'examples/py/starter-bar/app.py')
-rwxr-xr-xexamples/py/starter-bar/app.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/py/starter-bar/app.py b/examples/py/starter-bar/app.py
deleted file mode 100755
index 287d0f8..0000000
--- a/examples/py/starter-bar/app.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env python3
-import versions
-from gi.repository import Astal, Gio
-from widget.Bar import Bar
-from pathlib import Path
-
-css = str(Path(__file__).parent.resolve() / "style.css")
-
-
-class App(Astal.Application):
- def __init__(self):
- super().__init__()
- self.acquire_socket()
- self.run(None)
-
- def do_request(self, msg: str, conn: Gio.SocketConnection) -> None:
- print(msg)
- Astal.write_sock(conn, "hello")
-
- def do_activate(self) -> None:
- self.hold()
- self.apply_css(css, True)
- for mon in self.get_monitors():
- self.add_window(Bar(mon))
-
-
-App()