Add Cancel button to Open dialog

This commit is contained in:
Isaiah Odhner 2023-04-16 00:08:46 -04:00
parent d4becd2da0
commit 7aab466964

View File

@ -855,6 +855,7 @@ class PaintApp(App):
DirectoryTree(id="open_dialog_directory_tree", path="/"),
Input(id="open_dialog_filename_input", placeholder="Filename"),
Button("Open", classes="dialog_window_submit", variant="primary"),
Button("Cancel", classes="dialog_window_cancel"),
)
self.mount(window)
self.expand_directory_tree(window.content.query_one("#open_dialog_directory_tree"))