Dave Pearson
2ac3a03471
Add a missing type hint to TreeNode._expand
2023-01-23 20:56:09 +00:00
Dave Pearson
a3c7430f4a
Merge branch 'main' into tree-deeply
2023-01-23 19:57:14 +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
Dave Pearson
67eb5e753a
Add support for deeply expanding/collapsing/toggling nodes
...
This commit moves the bulk of the work of each action into an internal
method that does everything *apart* from invalidating the tree. The idea
being that all of the expanded states get updated, all of the update counts
get updated, and then finally one single tree invalidation takes place (the
latter taking place in the public method, which calls the related internal
method).
See #1430 .
2023-01-23 17:25:06 +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
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
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
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
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
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
Will McGugan
35f866c0cb
version bump
2023-01-20 08:59:37 +00:00
Will McGugan
82372d36a6
Merge pull request #1623 from davep/diagnose-diagnose
...
Import type annotations from the future for `textual diagnose`
2023-01-20 00:57:37 -08:00
Dave Pearson
78f85ba325
Import type annotations from the future for textual diagnose
...
I mean, I guess flat out crashing on older versions of Python is *a* way of
reporting the Python version. Kinda?
See the side issue reported in #1622 .
2023-01-20 07:12:59 +00:00
Will McGugan
c9b84f523c
Merge pull request #1621 from Textualize/strip-text
...
Strip text
2023-01-19 07:38:46 -08:00
Will McGugan
14c7eea8c2
Merge branch 'main' into strip-text
2023-01-19 07:38:36 -08:00
Will McGugan
6b51f0044b
Merge pull request #1518 from edrogers/fix-formatting-of-default-screenshot-filename
...
Make default filename for screenshots use ISO8601 datetime format
2023-01-19 07:37:55 -08:00
Dave Pearson
a87198654a
Merge branch 'main' into fix-formatting-of-default-screenshot-filename
2023-01-19 15:32:11 +00:00
Will McGugan
03d1a55f7b
changelog entry
2023-01-19 15:30:42 +00:00
Will McGugan
8e06312e18
added text property
2023-01-19 15:29:50 +00:00
Will McGugan
c6909b76c4
update bug report template
2023-01-19 14:50:30 +00:00
Will McGugan
9487f79dff
added version link
2023-01-19 14:47:08 +00:00
Will McGugan
1f71656c2a
Merge pull request #1618 from Textualize/0.10.0
...
Version bump
v0.10.0
2023-01-19 06:38:45 -08:00
Will McGugan
56d8bbff4f
Version bump
2023-01-19 14:30:38 +00:00
Will McGugan
3669bae4e2
Merge pull request #1615 from Textualize/test-freeze
...
Fix for test freeze
2023-01-19 06:28:01 -08:00
Will McGugan
8cc41a1357
remove except
2023-01-19 14:18:40 +00:00
Will McGugan
64cbab0a4c
missing create_task
2023-01-19 14:08:31 +00:00
Will McGugan
8ef1e5c626
tests
2023-01-19 14:05:04 +00:00
Will McGugan
2ec5ad8d08
Merge branch 'main' into test-freeze
2023-01-19 06:03:23 -08:00
Will McGugan
17ca4d0e5e
create_task compatibility layer
2023-01-19 14:02:41 +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