Commit Graph

4420 Commits

Author SHA1 Message Date
Will McGugan
8cc41a1357 remove except 2023-01-19 14:18:40 +00:00
Will McGugan
64cbab0a4c missing create_task 2023-01-19 14:08:31 +00:00
Will McGugan
8ef1e5c626 tests 2023-01-19 14:05:04 +00:00
Will McGugan
2ec5ad8d08 Merge branch 'main' into test-freeze 2023-01-19 06:03:23 -08:00
Will McGugan
17ca4d0e5e create_task compatibility layer 2023-01-19 14:02:41 +00:00
Will McGugan
4c8af53a08 Merge pull request #1614 from davep/drop-unused-import
Remove unused import of asyncio.Event in widget.py
2023-01-19 05:45:08 -08:00
Will McGugan
f9954e2829 Merge pull request #1601 from Textualize/datatable-clear-cursor
Resetting cursor/hover on clear of DataTable
2023-01-19 05:44:41 -08:00
Will McGugan
75e585f854 fix for freeze in tests 2023-01-19 13:41:36 +00:00
Dave Pearson
7d7042ff86 Remove unused import of asyncio.Event in widget.py 2023-01-19 13:37:58 +00:00
Will McGugan
614c6c5e78 potential fix for freeze 2023-01-19 12:23:12 +00:00
Darren Burns
4bb4eed623 Raise CellDoesNotExist from None 2023-01-19 10:05:14 +00:00
Ed Rogers
1c3329ad47 Update doc-string 2023-01-18 19:07:21 -06:00
Ed Rogers
61da0c5c70 Add full stop to reserved character list 2023-01-18 18:59:57 -06:00
Will McGugan
ab69e8079c update faq 2023-01-18 19:22:32 +00:00
Will McGugan
e0043f21e2 added question 2023-01-18 19:16:28 +00:00
Darren Burns
9d8cfa3652 Rename CellDoesntExist -> CellDoesNotExist 2023-01-18 17:04:13 +00:00
Darren Burns
602813b0d2 Increase sleeping time in DataTable test 2023-01-18 15:21:55 +00:00
Darren Burns
8367d1c9b4 Merge branch 'main' of github.com:willmcgugan/textual into datatable-clear-cursor 2023-01-18 15:16:15 +00:00
Will McGugan
27e9e46bd4 Merge pull request #1605 from Textualize/add-version
Added module level getattr to get version
2023-01-18 07:09:18 -08:00
Will McGugan
e8d20e0c46 Merge pull request #1599 from Textualize/docs-sweep
Remove explicit type hints from docstrings.
2023-01-18 06:58:17 -08:00
Will McGugan
ab01e43723 Add to all 2023-01-18 14:53:06 +00:00
Will McGugan
518783a2b1 added test 2023-01-18 14:51:50 +00:00
Will McGugan
df482e64cb Added module level getattr to get version 2023-01-18 14:44:54 +00:00
Darren Burns
7e75f6e13b Small refactor of DataTable, additional testing around message emission 2023-01-18 14:43:49 +00:00
Rodrigo Girão Serrão
cdb68c9ba1 Remove dead code. 2023-01-18 14:38:03 +00:00
Will McGugan
9d58293fd5 Restore copy button 2023-01-18 13:52:07 +00:00
Will McGugan
a8cefabade Merge pull request #1602 from davep/chill-out-list-view-tests
Sprinkle some pauses in the ListView tests
2023-01-18 05:49:49 -08:00
Darren Burns
0b7705c3cd Update CHANGELOG.md regarding DataTable cursor reset origin fix 2023-01-18 13:21:51 +00:00
Darren Burns
15392b9091 Add DataTable medium-sized test for clearing 2023-01-18 13:19:45 +00:00
Dave Pearson
7d307f902c Sprinkle some pauses in the ListView tests
The new ListView tests have been failing randomly in CI. Sprinkle some
pauses to allow keys to be processed so see if this helps some.
2023-01-18 12:31:13 +00:00
Rodrigo Girão Serrão
064cbc9b6f Fix attribute type hinting and docstrings.
The type hint alone was not enough for the tooling to pick up the type, so we decided to add explicit type hints when assigning the attributes in __init__ because that is enough for the tooling, and having the explicit type hints in the code means type checkers can make sure the type hints add up. If we have explicit type hints in the docstrings, those can become outdated without us noticing.
2023-01-18 12:26:36 +00:00
Rodrigo Girão Serrão
f34685b18f Remove base class NodeMessage. 2023-01-18 12:25:07 +00:00
Darren Burns
4c633bd353 Resetting cursor/hover on clear of DataTable 2023-01-18 12:06:12 +00:00
Will McGugan
939f49d1cd Merge pull request #1600 from davep/allow-inherit-listview
Allow populating a child class of `ListView` purely from its `compose`
2023-01-18 03:50:06 -08:00
Rodrigo Girão Serrão
f620da2682 Document the Message attributes. 2023-01-18 11:43:27 +00:00
Dave Pearson
7544448002 Reduce the hits on validation of index on startup
See https://github.com/Textualize/textual/pull/1600#pullrequestreview-1253248684
2023-01-18 11:27:06 +00:00
Dave Pearson
e3c6dea0d4 Update the CHANGELOG 2023-01-18 10:47:03 +00:00
Dave Pearson
b62d14c0d5 Ensure ListView.index is correct in all post-mount situations
This seeks to fix #1588 by ensuring that the index property is set to an
acceptable value after any items have been mounted within the ListView, thus
ensuring that an inherited ListView, which uses compose to add items rather
than having them passed via __init__, works as expected.
2023-01-18 10:43:45 +00:00
Dave Pearson
76272bcefe Extend ListView test to test an empty inherited list
For testing permutations of #1588.
2023-01-18 10:42:42 +00:00
Rodrigo Girão Serrão
72ce24c324 Fix docstrings for new commits. 2023-01-18 10:42:04 +00:00
Rodrigo Girão Serrão
0c2979f731 Merge branch 'main' into docs-sweep 2023-01-18 10:40:01 +00:00
Dave Pearson
9dede19a1f Add a test for inheriting from a ListView
Added to test the fail in #1588. Any fix for this should cause this test to pass.
2023-01-18 10:27:58 +00:00
Will McGugan
c214ca3697 Merge pull request #1598 from davep/pcent-text-update
Seek to improve the explanation of what a percentage does
2023-01-18 02:14:58 -08:00
Dave Pearson
05b3ab6c78 Refine the explanation of percentage
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2023-01-18 10:05:40 +00:00
Will McGugan
a70520f5e1 Merge pull request #1547 from Textualize/datatable-events
DataTable improvements (and more)
2023-01-18 02:01:33 -08:00
Will McGugan
5fad4ad36c Merge branch 'main' into datatable-events 2023-01-18 01:46:21 -08:00
Rodrigo Girão Serrão
15330e46e4 Remove explicit type hints from docstrings.
No point in having explicit type hints in docstrings because our tooling extracts them automatically. This applies the DRY principle and reduced the probability of us having wrong docstrings.
2023-01-17 18:11:56 +00:00
Will McGugan
c87711ca0d Merge pull request #1551 from Textualize/fix-1420
Raise clearer exception when `none` is in a space-separated list of text styles.
2023-01-17 10:05:27 -08:00
Rodrigo Girão Serrão
9c7a949093 Merge pull request #1595 from Textualize/fix-1196-add-focus-selector
Fix 1196 add focus selector
2023-01-17 16:48:34 +00:00
Dave Pearson
330950e6b0 Seek to improve the explanation of what a percentage does
I've seen a couple or so folk get confused about what a percentage value for
a dimension means, often seeming to think it means that percentage of
the *remaining* space within a container as opposed to a percentage of the
space in the container (note total space, not remaining space).

I'm not sure the wording here is the final form we want (there's more
mention of "dimension" here than your average Star Trek or Doctor Who
episode!), but I think it's narrowing in on it.

Making this change to place-hold the need to improve this and perhaps gather
some input to find the best final wording.
2023-01-17 16:33:30 +00:00