Adding upstream version 0.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d887bee5ca
commit
148efc9122
69 changed files with 12923 additions and 0 deletions
17
tests/snapshot_tests/snapshot_apps/empty_add_col.py
Normal file
17
tests/snapshot_tests/snapshot_apps/empty_add_col.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from textual.app import App, ComposeResult
|
||||
from textual_fastdatatable import DataTable
|
||||
|
||||
|
||||
class TableApp(App):
|
||||
def compose(self) -> ComposeResult:
|
||||
yield DataTable()
|
||||
|
||||
def on_mount(self) -> None:
|
||||
table = self.query_one(DataTable)
|
||||
table.add_column("Foo")
|
||||
table.add_rows([("1",), ("2",)])
|
||||
|
||||
|
||||
app = TableApp()
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
Loading…
Add table
Add a link
Reference in a new issue