mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #732 from Textualize/event-char
added char attribute to Text event
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Screen {
|
||||
layout: dock;
|
||||
docks: top=top bottom=bottom;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#file_table_wrapper {
|
||||
|
||||
17
sandbox/will/input.py
Normal file
17
sandbox/will/input.py
Normal 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()
|
||||
Reference in New Issue
Block a user