Merge pull request #732 from Textualize/event-char

added char attribute to Text event
This commit is contained in:
Will McGugan
2022-09-04 11:17:03 +01:00
committed by GitHub
10 changed files with 78 additions and 34 deletions

View File

@@ -62,7 +62,7 @@ class FileSearchApp(App):
self.file_table.filter = event.value
app = FileSearchApp(log_path="textual.log", css_path="file_search.scss", watch_css=True)
app = FileSearchApp(css_path="file_search.scss", watch_css=True)
if __name__ == "__main__":
result = app.run()

View File

@@ -1,6 +1,6 @@
Screen {
layout: dock;
docks: top=top bottom=bottom;
}
#file_table_wrapper {

17
sandbox/will/input.py Normal file
View File

@@ -0,0 +1,17 @@
from textual.app import App
from textual.widgets import TextInput
class InputApp(App):
CSS = """
TextInput {
}
"""
def compose(self):
yield TextInput(initial="foo")
app = InputApp()