Commit Graph

4387 Commits

Author SHA1 Message Date
Darren Burns
a4db3426b8 Rename a DataTable test 2023-01-24 11:35:30 +00:00
Darren Burns
12d429dbd0 Replace DataTable row_count with property, test improvements 2023-01-24 11:33:35 +00:00
Darren Burns
d1413ee352 Updating test to ensure row_key mapped data is correct 2023-01-24 10:38:47 +00:00
Darren Burns
2fbe4e0a79 Add update counter to cache keys 2023-01-24 10:27:27 +00:00
Darren Burns
197a399166 Update y_offsets to use row_key 2023-01-24 10:11:13 +00:00
Darren Burns
486e580e44 Rewording docstring in DataTable 2023-01-23 15:51:17 +00:00
Darren Burns
f338381b73 Testing around row key generation, add_rows etc 2023-01-23 15:47:25 +00:00
Darren Burns
5b14f8996d Rows are internally tracked using RowKey in DataTable 2023-01-23 15:37:38 +00:00
Darren Burns
f983ac308d Tracking row_key to row_index using internal mapping 2023-01-23 14:38:00 +00:00
Darren Burns
b3ad3d863a Create 2way mapping for row/col keys to row/col indices in DataTable 2023-01-23 14:15:42 +00:00
Darren Burns
b6e278f15b Light datatable refactoring/renaming 2023-01-23 14:06:24 +00:00
Darren Burns
61c8a1dfab Update a docstring that was very wrong 2023-01-23 11:21:08 +00:00
Darren Burns
e8bdc43fe4 Formatting docstrings in DataTable module 2023-01-23 10:43:58 +00:00
Darren Burns
cef3983524 Use custom object instead of NamedTuple for keys 2023-01-23 10:43:31 +00:00
Darren Burns
0b832a3a3a Update to new docsting format for Returns 2023-01-23 10:29:45 +00:00
Darren Burns
2b7c569811 Testing two-way mapping 2023-01-23 10:06:17 +00:00
Darren Burns
38179451ef Add lookup methods 2023-01-23 09:40:57 +00:00
Darren Burns
737accfc3b Initial work on a two-way mapping data structure 2023-01-19 17:05:26 +00:00
Darren Burns
69adb5b94c Return keys from batch add_row/column in DataTable, docstring it 2023-01-19 15:36:10 +00:00
Darren Burns
27734d5fdb Return the StringKey objects from add_row/add_column in DataTable 2023-01-19 15:16:22 +00:00
Darren Burns
9d7e8a8d4d Create CellKey NamedTuple 2023-01-19 15:14:13 +00:00
Darren Burns
7604eacdb1 Delete a comment 2023-01-19 15:12:04 +00:00
Darren Burns
b514507472 Rename Key to StringKey to prevent clash with keyboard Keys 2023-01-19 15:11:46 +00:00
Darren Burns
16c50870a7 Some updates to DataTable cell key tests 2023-01-19 15:10:36 +00:00
Darren Burns
501952abd5 Add tests around DataTable key generation 2023-01-19 14:58:14 +00:00
Darren Burns
57863cd6cd Creating keys for rows and columns on creation 2023-01-19 14:50:54 +00:00
Darren Burns
d43eb9028c Merge latest main 2023-01-19 14:24:35 +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
Dave Pearson
7d7042ff86 Remove unused import of asyncio.Event in widget.py 2023-01-19 13:37:58 +00:00
Darren Burns
4bb4eed623 Raise CellDoesNotExist from None 2023-01-19 10:05:14 +00: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