-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.py
More file actions
executable file
·26 lines (23 loc) · 1.05 KB
/
Copy pathabout.py
File metadata and controls
executable file
·26 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from textual.app import ComposeResult
from textual.containers import Center, Grid, CenterMiddle
from textual.screen import ModalScreen
from textual.widgets import Button, Label, Link
from constants import EMAIL, WEBPAGE_URL, APP_VERSION, REPOSITORY_URL
class About(ModalScreen):
def compose(self) -> ComposeResult:
with Grid():
with Center():
yield Label(
"[b cyan]Auto[/]mate [b cyan]F[/]ace[b cyan]b[/]ook [b cyan]Post[/]s"
)
with Center():
yield Label(f"Version: {APP_VERSION}", variant="primary")
with Center():
yield Label("Developed by: ")
yield Link("@otf31", url=f"mailto:{EMAIL}", tooltip=EMAIL)
with CenterMiddle():
yield Link("Github repository", url=REPOSITORY_URL)
with Center():
yield Label("Visit us ")
yield Link("here", url=WEBPAGE_URL, tooltip=WEBPAGE_URL)
yield Button("Close", variant="error", action="app.pop_screen")