Darren Burns
12a58f838f
Exception on duplicate row and column keys
2023-02-13 14:09:33 +00:00
Darren Burns
196054f6b0
Cache row ordering, raise NotImplemented if StringKey cannot be compared to a type
2023-02-13 12:11:48 +00:00
Darren Burns
03dc86fc66
Add rich reprs
2023-02-13 10:08:04 +00:00
Darren Burns
22ab4f80af
[no ci] Begin caching of offsets
2023-02-09 16:43:05 +00:00
Darren Burns
84141630bc
Some renaming of API methods
2023-02-09 16:20:17 +00:00
Darren Burns
f4cd51e5e8
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-02-09 15:55:45 +00:00
Darren Burns
95f2e49126
Some review updates
2023-02-09 15:52:47 +00:00
Will McGugan
1d19bb8d80
Merge pull request #1752 from Textualize/import-sorting-hook
...
Adds `isort` pre-commit hook, re-orders all imports in src and test directories
2023-02-09 15:34:29 +00:00
Darren Burns
64a805cb8d
Merge branch 'main' of github.com:Textualize/textual into import-sorting-hook
2023-02-09 14:28:23 +00:00
Dave Pearson
989e71e749
Merge pull request #1751 from davep/checkbox-switch
...
Rename `Checkbox` to `Switch`
2023-02-09 14:24:00 +00:00
Dave Pearson
c436b57ed5
Merge branch 'main' into checkbox-switch
2023-02-09 13:57:15 +00:00
Dave Pearson
f092e9f46c
Reorder some imports
2023-02-09 13:50:38 +00:00
Darren Burns
9287f64a66
Add isort pre-commit hook, sort imports in src and test directories
2023-02-09 13:28:08 +00:00
Darren Burns
59fc561e9c
Optimising DataTable import
2023-02-09 13:16:44 +00:00
Will McGugan
67c2127e46
Merge pull request #1750 from Textualize/fix-screen-switch
...
exclude removed reactables
2023-02-09 12:08:24 +00:00
Will McGugan
74fc85054c
docstring [skip ci]
2023-02-09 12:07:48 +00:00
Will McGugan
70d4d2ffc9
Merge pull request #1749 from davep/fix-tree-type-help
...
Remove the import/export of TreeNode from the widgets pyi file
2023-02-09 11:58:41 +00:00
Will McGugan
f450d98e3e
snapshot
2023-02-09 11:55:36 +00:00
Will McGugan
67e19d84e3
changelog
2023-02-09 11:50:06 +00:00
Will McGugan
3a9c052d20
Added snapshot
2023-02-09 11:49:11 +00:00
Will McGugan
85df8d703e
typing and changelog
2023-02-09 11:45:19 +00:00
Will McGugan
392b56e548
Added watch method
2023-02-09 11:42:58 +00:00
Darren Burns
ccc2073b18
Add docstrings, remove more unused attributes in the DataTable
2023-02-09 11:35:37 +00:00
Darren Burns
408ca2822d
Make filter module public
2023-02-09 11:22:34 +00:00
Will McGugan
93acc27482
test for is_attached
2023-02-09 11:17:41 +00:00
Darren Burns
7ebc95fb54
Updating tests for DataTable
2023-02-09 11:16:14 +00:00
Dave Pearson
decc1e2f3c
Rename Checkbox to Switch
...
A new form of Checkbox will be arriving in Textual soon, working in
conjunction with a RadioButton. What was called Checkbox is perhaps a wee
bit heavyweight in terms of visual design, but is a style of widget that
should remain.
With this in mind we're renaming the current Checkbox to Switch. In all
other respects its workings remains the same, only the name has changed.
Things for people to watch out for:
- Imports will need to be updated.
- Queries will need to be updated; special attention will need to be paid to
any queries that are string-based.
- CSS will need to be changed if any Checkbox styling is happening, or if
any Checkbox component styles are being used.
See #1725 as the initial motivation and #1746 as the issue for this
particular change.
2023-02-09 11:10:30 +00:00
Will McGugan
6b91501ade
exclude removed reactables
2023-02-09 11:04:37 +00:00
Will McGugan
6cd4d859b6
Merge pull request #1747 from Textualize/reactive-polish
...
Reactive polish
2023-02-09 10:29:20 +00:00
Dave Pearson
330e4db17c
Remove the import/export of TreeNode from the widgets pyi file
...
We've moved TreeNode out of the general widgets import, requiring the user
to import from widgets.tree. When I made that change I missed this.
2023-02-09 10:27:48 +00:00
Will McGugan
7f997023ce
force wait for idle
2023-02-09 10:18:01 +00:00
Darren Burns
c76bd5df2c
Fix some typing issues
2023-02-09 09:58:24 +00:00
Darren Burns
85f2250f2d
Ensure we measure cell values *after* passing through cell formatter
2023-02-09 09:48:22 +00:00
Will McGugan
b0a9c743ea
Change reactable type
2023-02-09 09:46:07 +00:00
Will McGugan
507a2f8299
No need to return a bool here
2023-02-09 09:42:05 +00:00
Will McGugan
c66c8b6ad6
Reactivity improvements
2023-02-09 09:35:01 +00:00
Darren Burns
a6f382660c
Fix imports in data table tests
2023-02-08 16:07:17 +00:00
Darren Burns
08233843c3
Various PEP8 fixes
2023-02-08 15:54:07 +00:00
Darren Burns
08fa1b52aa
Include possible exception in docstring
2023-02-08 15:43:32 +00:00
Darren Burns
67415bfc19
Satisfy mypy by using indexing rather than get method in dict
2023-02-08 15:39:03 +00:00
Darren Burns
0adfda8386
Ensure we convert str to keys for mypy in DataTable update_cell
2023-02-08 15:36:27 +00:00
Darren Burns
c9398d87cf
Merge branch 'main' of github.com:willmcgugan/textual into datatable-cell-keys
2023-02-08 14:22:43 +00:00
Darren Burns
e4d2cde9cd
Unit test to ensure column cursor events posted correctly
2023-02-08 14:20:28 +00:00
Darren Burns
6ffeb5cd8a
Unit test to ensure event emission from row cursor correct in DataTable
2023-02-08 14:13:37 +00:00
Rodrigo Girão Serrão
b86882ed0c
Merge pull request #1742 from Textualize/rodrigogiraoserrao-patch-1
...
Update _data_table.py
2023-02-08 14:05:43 +00:00
Darren Burns
2fe73c0c28
Testing highlighted events via keyboard cursor movement
2023-02-08 14:01:42 +00:00
Rodrigo Girão Serrão
aae2a8882a
Update _data_table.py
2023-02-08 13:58:21 +00:00
Will McGugan
d67510e683
Merge pull request #1741 from davep/revert-old-blog-post
...
Revert retrofitting of example code in an old blog post
2023-02-08 13:49:05 +00:00
Dave Pearson
8d905b753d
Revert retrofitting of example code in an old blog post
...
Makes sense to update all the docs to reflect the work done in #1738 but I
feel it doesn't quite make sense to retrofit this into an old blog post --
especially if the code it is referring to was like that at the time and
likely still will be for a wee while after this gets republished.
2023-02-08 13:39:24 +00:00
Darren Burns
64840daa0e
PEP8 in tests for data table
2023-02-08 13:36:42 +00:00