bumped version number, fixed back button, build command struct docs
This commit is contained in:
@@ -55,13 +55,16 @@ class DocsApp(App):
|
||||
async def on_button_pressed(self, event: Button.Pressed):
|
||||
if event.button.id == "back":
|
||||
await self.query_one(MarkdownViewer).back()
|
||||
|
||||
async def on_ready(self):
|
||||
await self.query_one(MarkdownViewer).go(self.inital_markdown_path)
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
with open(self.inital_markdown_path, "r") as f:
|
||||
markdown = f.read()
|
||||
|
||||
yield Header()
|
||||
yield MarkdownViewer(markdown)
|
||||
yield MarkdownViewer("")
|
||||
|
||||
with Horizontal(id="bottom"):
|
||||
yield Button(label="Back", id="back", flat=True, variant="error")
|
||||
|
||||
Reference in New Issue
Block a user