mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-30 10:12:01 +03:00
Add Cancel button to Open dialog
This commit is contained in:
parent
d4becd2da0
commit
7aab466964
1
paint.py
1
paint.py
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user