Commit Graph

4772 Commits

Author SHA1 Message Date
Darren Burns
38b361b47f Merge branch 'datatable-cell-keys' of github.com:willmcgugan/textual into datatable-cell-keys 2023-02-06 12:47:38 +00:00
Darren Burns
c9ccbce41b Merge branch 'main' of github.com:willmcgugan/textual into datatable-cell-keys 2023-02-06 12:46:07 +00:00
Will McGugan
fb7fd14262 Merge pull request #1710 from Textualize/line-api-docs
Documented the Line API
2023-02-06 11:42:57 +00:00
Will McGugan
f8577f79d7 review fixes 2023-02-06 11:34:37 +00:00
Will McGugan
b12c5e1cdf typo 2023-02-05 12:12:27 +01:00
Will McGugan
738837fd66 review update 2023-02-05 12:06:48 +01:00
Will McGugan
f56823a733 better diagram 2023-02-04 17:47:49 +01:00
Will McGugan
e81ac17c6c revised copy 2023-02-04 17:35:09 +01:00
Will McGugan
8540900d3b add test for extend_cell_length 2023-02-04 17:16:00 +01:00
Will McGugan
a05398378f diagram tweak 2023-02-04 16:24:40 +01:00
Will McGugan
dc1fce3da7 svg update 2023-02-04 16:13:42 +01:00
Will McGugan
59def1a591 test fix 2023-02-04 16:10:33 +01:00
Will McGugan
de2a4fd78d test fixes 2023-02-04 15:53:00 +01:00
Will McGugan
fb7c1642bc Checker example 4, docs and diagram 2023-02-04 15:40:36 +01:00
Will McGugan
25b498896d checker 4 and diagram 2023-02-04 11:28:07 +01:00
Will McGugan
a5808db8b8 more docs and diagrams 2023-02-03 19:10:03 +01:00
Will McGugan
2ff278874b docs examples and diagrams 2023-02-03 11:23:14 +01:00
Darren Burns
998ee9b8a2 Test to ensure correct exception raised when converting to cell key from coordinate in DataTable 2023-02-02 15:44:25 +00:00
Darren Burns
18aaeaa284 Add explanatory message to an exception in DataTable 2023-02-02 15:41:24 +00:00
Darren Burns
62fb9d58bd Testing conversion of coordinate to cell_key 2023-02-02 15:40:24 +00:00
Darren Burns
87808c63b2 Tidying some tests 2023-02-02 15:29:26 +00:00
Darren Burns
134ceffd11 Testing to ensure column size calculated correctly 2023-02-02 14:20:33 +00:00
Dave Pearson
9f9ccf32d6 Merge pull request #1715 from davep/package-tests
Include the unit tests in the source distribution
2023-02-02 14:15:57 +00:00
Darren Burns
7748b69e95 Initial unit tests around column width updates 2023-02-02 14:12:14 +00:00
Dave Pearson
244372205e Include the unit tests in the source distribution
As requested in #631 and also #1349; this change should cause the tests (and
also the examples from the docs directory which get pulled into the tests)
to be pulled into the sdist.

With this change I can:

- `poetry build`
- Grab and extract the resulting tarball
- `poetry install --extras dev` inside the resulting directory
- `poetry run pytest -vv tests` inside the resulting directory

As I understand the request, I think this should provide everything
necessary.

NOTE: We have spoken about rolling the CLI tools into snapshot tests too, so
if that happens we should remember to make sure that the pipeline outlined
above still works fine.
2023-02-02 13:51:45 +00:00
Darren Burns
990a6311bc Extract common coordinate validation logic into method in DataTable 2023-02-02 13:09:11 +00:00
Darren Burns
77b94b005c Testing case where you try to update cells which dont exist 2023-02-01 17:34:03 +00:00
Will McGugan
d3fdcbe250 Merge pull request #1712 from Textualize/titles
Update to title and subtitle copy
2023-02-01 18:16:45 +01:00
Darren Burns
23a34030cd Measuring string cells correctly 2023-02-01 17:10:59 +00:00
Will McGugan
8ce76f4f89 fix title update 2023-02-01 18:01:34 +01:00
Will McGugan
087654a246 Update docs/guide/app.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-01 17:49:33 +01:00
Will McGugan
340f7c53bc Update docs/guide/app.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-01 17:49:05 +01:00
Will McGugan
8fc978503b Merge pull request #1711 from davep/textual-keys-older-pythons
Make `textual keys` work on older supported Pythons
2023-02-01 17:44:44 +01:00
Will McGugan
259c1cc14e tip to info 2023-02-01 17:43:29 +01:00
Will McGugan
c04e387dfe title copy 2023-02-01 17:38:19 +01:00
Dave Pearson
91630d6e04 Make textual keys work on older supported Pythons 2023-02-01 16:37:53 +00:00
Will McGugan
806c80b8fe simplify 2023-02-01 17:14:53 +01:00
Darren Burns
fd4e13c988 Add tests for DataTable.get_cell_value 2023-02-01 15:43:36 +00:00
Dave Pearson
79952719ae Merge pull request #1709 from davep/tree-complete-clear
Add `Tree.reset`, which clears a `Tree` and then then resets the `Tree.root`'s `label` and `data` to given values
2023-02-01 15:30:28 +00:00
Will McGugan
0a5838d964 checker example 2023-02-01 16:26:55 +01:00
Darren Burns
43c2696ccf Small rename in DataTable utility types 2023-02-01 15:25:13 +00:00
Will McGugan
9e5814ed0f Strip improvements and line api 2023-02-01 16:22:14 +01:00
Rodrigo Girão Serrão
faa2ee68d7 Merge pull request #1706 from Textualize/document-sub-title
Document setting (sub) title in the app guide
2023-02-01 15:08:43 +00:00
Dave Pearson
d350374e59 Revert Tree.clear and add Tree.reset
After some internal discussion we've decided to keep `Tree.clear` as it was,
and add a `Tree.reset`, which does a `Tree.clear` but resets the label and
data of `Tree.root` to the values given, while mirroring how `Tree.__init__`
takes those parameters.
2023-02-01 15:08:03 +00:00
Darren Burns
c84ae53395 Fix docstring indentation to fix mkdocs rendering 2023-02-01 15:07:38 +00:00
Darren Burns
79b08aa6b5 Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys 2023-02-01 14:55:14 +00:00
Darren Burns
3f463cb0ef Store strings as strings 2023-02-01 14:54:33 +00:00
Rodrigo Girão Serrão
2140aa52d2 Update docs/guide/app.md 2023-02-01 14:53:20 +00:00
Darren Burns
a7383e6a83 Import and export datatable utilities from public module 2023-02-01 14:51:05 +00:00
Darren Burns
67d79e16da Simplify _get_offsets to return header row key 2023-02-01 14:10:01 +00:00