Commit Graph

3302 Commits

Author SHA1 Message Date
Dave Pearson
58ee841dbd DRY the conversion of a child index to a child Widget 2022-11-14 16:41:18 +00:00
Dave Pearson
48e5f5e026 Add Widget.move_child
Adds a method to Widget that allows moving a child of that widget within its
list of children. Options are to move before or after a specific location,
or a sibling widget.

Seeks to implement #1121.
2022-11-14 12:22:24 +00:00
Will McGugan
3c73914086 fix deadlock on tests 2022-11-13 13:22:56 +00:00
Will McGugan
1f4c156eac Merge pull request #1165 from aaronst/datatable-initial-values
feat: initial datatable reactive values
2022-11-13 12:55:44 +00:00
Aaron Stephens
2675d617ff fix: initialize reactive attributes last 2022-11-12 12:04:34 -08:00
Aaron Stephens
dadb7fe94a Merge branch 'Textualize:main' into datatable-initial-values 2022-11-12 11:14:35 -08:00
Will McGugan
162759ec81 social links 2022-11-12 17:45:02 +00:00
Will McGugan
e7e4da62e6 Merge pull request #1167 from Textualize/anim-fix
Fix animation on styles
2022-11-12 15:50:09 +00:00
Will McGugan
0a45ff374f update to greater than or equals 2022-11-12 12:24:36 +00:00
Will McGugan
e9489f194f tweak to anim test 2022-11-12 12:22:31 +00:00
Will McGugan
46d12fcfe0 win fix 2022-11-12 12:17:01 +00:00
Will McGugan
2605785288 use per_counter 2022-11-12 12:12:23 +00:00
Will McGugan
949745a08a add sleep to test 2022-11-12 12:05:59 +00:00
Will McGugan
b752ab5a04 more tests 2022-11-12 12:00:49 +00:00
Will McGugan
a0ab6c99f1 test for animation 2022-11-12 11:47:14 +00:00
Will McGugan
698e6f56e4 docs 2022-11-12 11:23:20 +00:00
Will McGugan
61379cd435 comments 2022-11-12 11:17:25 +00:00
Will McGugan
4a1d1565f3 Fix animation on styles 2022-11-12 11:12:49 +00:00
Aaron Stephens
1549c81ff1 feat: initial datatable reactive values 2022-11-11 12:06:26 -08:00
Will McGugan
cb96da1a8e Merge pull request #1160 from Textualize/walk-factor
factored out walk
2022-11-11 18:24:38 +00:00
Will McGugan
9ec56e9f78 Merge branch 'main' into walk-factor 2022-11-11 18:23:45 +00:00
Will McGugan
fa89b0f4e2 Merge pull request #1163 from davep/docfix
Add missing close quote to height Python example
2022-11-11 18:08:32 +00:00
Will McGugan
b5b705ee57 Merge pull request #1158 from davep/docstring-tidying
Assorted docstring tweaks
2022-11-11 18:08:03 +00:00
Will McGugan
5b4f05592d Merge pull request #1157 from davep/awaitable-remove
Awaitable remove
2022-11-11 18:06:41 +00:00
Dave Pearson
90c14815a0 Add missing close quote to height Python example 2022-11-11 17:59:33 +00:00
Dave Pearson
bc851d5466 Correct the description of the default screenshot action location 2022-11-11 17:21:32 +00:00
Will McGugan
e83a3a79bd Added walk to docs 2022-11-11 10:05:12 +00:00
Will McGugan
b2d9f4703d keep pylance happy 2022-11-11 09:55:56 +00:00
Will McGugan
41263c32df restore type alias 2022-11-11 09:41:14 +00:00
Will McGugan
44e44da784 docstrings 2022-11-11 09:38:17 +00:00
Will McGugan
d93e300d95 walk.py 2022-11-11 09:33:31 +00:00
Will McGugan
698ecc62c6 factored out walk 2022-11-11 09:29:45 +00:00
Dave Pearson
d83c4aacbe Make a property docstring more property-a-like 2022-11-10 21:43:14 +00:00
Dave Pearson
2a80e1761d Add some missing return types 2022-11-10 21:38:58 +00:00
Dave Pearson
c18852a737 Add missing property type 2022-11-10 21:36:05 +00:00
Dave Pearson
0dae1761ad Tidy up the docstring for the checkbox
Google style docstring guidelines say that __init__ args can go either in
the class docstring, or the __init__ docstring; so this class was correct.
But the guidelines also recommend that once one approach has been picked it
should be the same over the whole body of the code. Textual mostly seems to
do it in the __init__ so I'm moving things to here and also adding some
missing args.
2022-11-10 21:33:24 +00:00
Dave Pearson
bd21e248b1 Fix the default value of a checkbox
The value is bool, but the default is None. This makes the default False.
2022-11-10 21:32:00 +00:00
Dave Pearson
3dae5f2c93 Add missing types to arguments 2022-11-10 21:28:21 +00:00
Dave Pearson
7864aa3f8e Add missing types to arguments 2022-11-10 21:27:52 +00:00
Dave Pearson
5d2a2fd340 Add missing types to arguments 2022-11-10 21:27:12 +00:00
Dave Pearson
60b5456229 Add types to all Button.__init__ args 2022-11-10 21:25:14 +00:00
Dave Pearson
4418cbab78 Merge branch 'main' into awaitable-remove 2022-11-10 20:43:25 +00:00
Dave Pearson
32e6f71856 Be 100% sure all removals take place 2022-11-10 20:41:11 +00:00
Dave Pearson
d3e7f5ad99 Add a unit test for removal ordering via DOMQuery.remove 2022-11-10 20:36:57 +00:00
Dave Pearson
9748850657 Add a unit test for removal ordering via Widget.remove 2022-11-10 20:34:51 +00:00
Dave Pearson
d378eb4291 Update the CHANGELOG 2022-11-10 20:07:57 +00:00
Dave Pearson
7147df462b Flesh out the Widget.remove docs 2022-11-10 19:59:18 +00:00
Dave Pearson
1fb2cacbe4 Widgets, not widget 2022-11-10 19:58:40 +00:00
Dave Pearson
de275d7011 Flesh out the Prune event docs 2022-11-10 19:57:08 +00:00
Dave Pearson
736237be58 Flesh out the docstring for DOMQuery.remove 2022-11-10 19:49:59 +00:00