mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
changed to CSS_PATH
This commit is contained in:
@@ -12,6 +12,7 @@ from textual.widgets import DirectoryTree, Footer, Header, Static
|
||||
class CodeBrowser(App):
|
||||
"""Textual code browser app."""
|
||||
|
||||
CSS_PATH = "code_browser.css"
|
||||
BINDINGS = [
|
||||
("f", "toggle_files", "Toggle Files"),
|
||||
("q", "quit", "Quit"),
|
||||
@@ -56,6 +57,5 @@ class CodeBrowser(App):
|
||||
self.show_tree = not self.show_tree
|
||||
|
||||
|
||||
app = CodeBrowser(css_path="code_browser.css")
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
CodeBrowser().run()
|
||||
|
||||
Reference in New Issue
Block a user