-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .screen import PackageManagerScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from textual import on | ||
from textual.app import ComposeResult | ||
from textual.events import ScreenResume | ||
from textual.screen import Screen | ||
from textual.widgets import Header, Footer | ||
|
||
from presentation.component.sidebar import Sidebar | ||
|
||
|
||
class PackageManagerScreen(Screen): | ||
BINDINGS = { | ||
("escape", "return", "Return to project"), | ||
} | ||
|
||
def compose(self) -> ComposeResult: | ||
yield Sidebar(classes="-hidden") | ||
yield Header() | ||
yield Footer() | ||
|
||
def action_return(self): | ||
self.app.switch_screen("summary") | ||
|
||
@on(ScreenResume) | ||
def screen_resume(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters