优化项目代码

This commit is contained in:
yongquan
2024-01-09 19:18:49 +08:00
parent 039f9f9785
commit 0d22a8f4c0
9 changed files with 65 additions and 29 deletions

View File

@@ -36,5 +36,5 @@ class XHSDownloader(App):
async def action_settings(self):
await self.push_screen("setting")
async def action_back(self):
async def action_index(self):
await self.push_screen("index")

View File

@@ -15,7 +15,7 @@ class Setting(Screen):
"static/css/setting.tcss")
BINDINGS = [
Binding(key="q", action="quit", description="退出程序"),
Binding(key="b", action="back", description="返回首页"),
Binding(key="b", action="index", description="返回首页"),
]
def compose(self) -> ComposeResult: