Commit Graph

4444 Commits

Author SHA1 Message Date
Darren Burns
b5e5a66e32 Some additional tests around row/col keys in DataTable 2023-01-24 12:52:31 +00:00
Darren Burns
9d8cf18bf1 Merge branch 'main' of github.com:willmcgugan/textual into datatable-cell-keys 2023-01-24 12:47:52 +00:00
Darren Burns
0eb38e79da Add test for adding columns to data table 2023-01-24 12:47:43 +00:00
Darren Burns
2725074194 Sorting imports in tests for DataTable 2023-01-24 11:43:13 +00:00
Darren Burns
6ea3380e8f Increase a pause in a Tree test 2023-01-24 11:36:24 +00:00
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
Dave Pearson
2662e6b292 Merge pull request #1652 from davep/remove-children-updated-doc-reference
Remove mention of `ChildrenUpdated` from the `ListView` docs
2023-01-24 09:54:32 +00:00
Dave Pearson
faac89fd8d Remove mention of ChildrenUpdated from the ListView docs
As pointed out in #1649, a `ChildrenUpdated` message is documented but it
doesn't exist in the code. It looks like it got added during development,
then removed after it was realised it wasn't needed, but presumably it got
left in the docs:

  https://github.com/Textualize/textual/pull/1143#discussion_r1030409026
2023-01-24 07:47:18 +00:00
Rodrigo Girão Serrão
dde90a8069 Merge pull request #1646 from Textualize/test-pause
Add pause to flaky test.
2023-01-23 18:36:08 +00:00
Rodrigo Girão Serrão
5c73387bca Pause before rendering input widget. 2023-01-23 18:13:27 +00:00
Will McGugan
9e35f7b4e4 Merge pull request #1636 from Textualize/stuck-screen
fix stuck screen
2023-01-23 18:03:07 +01:00
Will McGugan
068345076b Merge branch 'main' into stuck-screen 2023-01-23 17:28:17 +01:00
Dave Pearson
7df94c2084 Merge pull request #1641 from davep/explain-before-after
Explain the significance of the before/after types
2023-01-23 16:26:45 +00:00
Rodrigo Girão Serrão
4baf4f4bce Merge pull request #1640 from Textualize/fix-1406
Correct the dimension relative units in grid-rows/columns were assigned to
2023-01-23 16:24:58 +00:00
Will McGugan
b8e8636832 Merge pull request #1633 from davep/click-warn
Catch an attempt to use the `textual` command in a non-dev context
2023-01-23 17:18:03 +01: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
Dave Pearson
c2e406e48a Explain the significance of the before/after types
This was asked about on Discord; reading the docs over again it's not
obvious what an `int` is for, or a `str`. This change seeks to explain
things at the API level at least.
2023-01-23 15:09:22 +00:00
Rodrigo Girão Serrão
e7f76bf85a Add regression tests. 2023-01-23 15:04:36 +00:00
Dave Pearson
383ab18831 Merge pull request #1639 from davep/param-type-sweepup
Remove some parameter types that got missed on `Widget.move_child`
2023-01-23 14:57:16 +00:00
Rodrigo Girão Serrão
86eb12f335 Update changelog. 2023-01-23 14:45:54 +00:00
Rodrigo Girão Serrão
8aeee6a360 Add percent_unit parameter to ScalarListProperty.
Without this information, grid-rows and grid-columns will have the same percent_unit for scalars that are relative and thus relative dimensions will be wrong.
2023-01-23 14:42:27 +00:00
Rodrigo Girão Serrão
8aeb6c1e01 Fix width/height relationshipt with rows/columns. 2023-01-23 14:41:36 +00:00
Darren Burns
f983ac308d Tracking row_key to row_index using internal mapping 2023-01-23 14:38:00 +00:00
Dave Pearson
ac11a4f461 Remove some parameter types that got missed on Widget.move_child
Rogue colon likely threw off whatever regexp was being used to hunt the
examples down.
2023-01-23 14:34:54 +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
Will McGugan
4a924d446c fix typo 2023-01-23 12:50:34 +01:00
Will McGugan
cd92356b8e update dependencies 2023-01-23 12:46:31 +01:00
Will McGugan
2b3d966410 moar pauses 2023-01-23 12:31:18 +01:00
Darren Burns
61c8a1dfab Update a docstring that was very wrong 2023-01-23 11:21:08 +00:00
Will McGugan
81d086e8d7 fix snapshot test 2023-01-23 12:11:05 +01:00
Will McGugan
e852795e10 comment 2023-01-23 12:09:41 +01:00
Will McGugan
dc97baedc5 comment 2023-01-23 12:08:26 +01:00
Will McGugan
b70b3997f0 remove comments 2023-01-23 12:03:38 +01:00
Will McGugan
3b9bc0d536 fix stuck screen 2023-01-23 11:57:48 +01: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
Will McGugan
cc1f2f61d9 Merge pull request #1629 from Textualize/rodrigogiraoserrao-patch-1
Skip FAQtory on new issues by Textualize members
2023-01-21 18:15:05 +01:00
Dave Pearson
98f904223c Catch an attempt to use textual command in non-dev
This provides an interim fix for #983. While the longer-term solution for
this is for us to *not* have the `textual` command available if the user has
installed textual rather than textual[dev], this at least informs the user
what's going on and why for now.
2023-01-21 09:42:21 +00:00
Rodrigo Girão Serrão
94157eae59 Skip FAQtory on new issues by Textualize members
Fix #1617 (excellent idea).
2023-01-20 15:47:13 +00:00
Will McGugan
0691462871 Merge pull request #1624 from Textualize/0.10.1
version bump
v0.10.1
2023-01-20 01:07:27 -08:00